Generated on Tue Dec 16 13:35:02 2008 for ell-3.0.0 by doxygen 1.5.1

ell::SC_ListingK Class Reference

#include <StateCollector.hh>

Inheritance diagram for ell::SC_ListingK:

Inheritance graph
[legend]

Detailed Description

This subclass of of StateCollector keeps a list of the k last added States.

Author:
Martin Mann

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]

total number of added States

Definition at line 165 of file StateCollector.hh.

size_t ell::SC_ListingK::curEnd [protected]

index of the last added state in stateList

Definition at line 162 of file StateCollector.hh.

the internal storage of all added states

Definition at line 160 of file StateCollector.hh.


The documentation for this class was generated from the following files: