ell::SC_ListingK Class Reference
#include <StateCollector.hh>
Inheritance diagram for ell::SC_ListingK:
Detailed Description
This subclass of of StateCollector keeps a list of the k last added States.
Definition at line 151 of file StateCollector.hh.
Public Types | |
typedef std::vector< State * > | List |
Public Member Functions | |
virtual void | add (const State &s) |
virtual const State *const | getLastAdded () const |
virtual iterator | getList () const |
SC_ListingK (const size_t length) | |
virtual size_t | size () const |
~SC_ListingK () | |
Protected Attributes | |
size_t | addedTotal |
size_t | curEnd |
List | stateList |
Data Structures | |
class | iterator |
Member Typedef Documentation
typedef std::vector<State*> ell::SC_ListingK::List |
Definition at line 155 of file StateCollector.hh.
Constructor & Destructor Documentation
ell::SC_ListingK::SC_ListingK | ( | const size_t | length | ) |
- Parameters:
-
length the length of the list to store, i.e. the number of last added states.
Definition at line 57 of file SC_Listing.cc.
ell::SC_ListingK::~SC_ListingK | ( | ) |
Definition at line 65 of file SC_Listing.cc.
Member Function Documentation
void ell::SC_ListingK::add | ( | const State & | s | ) | [virtual] |
Adds State to the state list.
- Parameters:
-
s the added State
Implements ell::StateCollector.
Definition at line 80 of file SC_Listing.cc.
const State *const ell::SC_ListingK::getLastAdded | ( | ) | const [virtual] |
Returns last added State.
- Returns:
- the last added State
Implements ell::StateCollector.
Definition at line 101 of file SC_Listing.cc.
SC_ListingK::iterator ell::SC_ListingK::getList | ( | ) | const [virtual] |
Definition at line 106 of file SC_Listing.cc.
size_t ell::SC_ListingK::size | ( | ) | const [virtual] |
Returns number of added States.
- Returns:
- the number of added states
Implements ell::StateCollector.
Definition at line 94 of file SC_Listing.cc.
Field Documentation
size_t ell::SC_ListingK::addedTotal [protected] |
size_t ell::SC_ListingK::curEnd [protected] |
List ell::SC_ListingK::stateList [protected] |
The documentation for this class was generated from the following files:
- src/ell/StateCollector.hh
- src/ell/SC_Listing.cc