ell::SC_Maximum Class Reference
#include <StateCollector.hh>
Inheritance diagram for ell::SC_Maximum:
Detailed Description
A StateCollector that stores the State which is maximal according to the State::less operator.
Definition at line 283 of file StateCollector.hh.
Public Member Functions | |
virtual void | add (const State &s) |
virtual const State *const | getLastAdded () const |
const State *const | getMaximumState () const |
SC_Maximum () | |
virtual size_t | size () const |
virtual | ~SC_Maximum () |
Protected Attributes | |
State * | lastAdded |
State * | maxEState |
size_t | stateCount |
Constructor & Destructor Documentation
ell::SC_Maximum::SC_Maximum | ( | ) |
Definition at line 6 of file SC_Maximum.cc.
ell::SC_Maximum::~SC_Maximum | ( | ) | [virtual] |
Definition at line 11 of file SC_Maximum.cc.
Member Function Documentation
void ell::SC_Maximum::add | ( | const State & | s | ) | [virtual] |
Checks if the new State is of higher order than the current maxEState and forwards the call to the super class.
- Parameters:
-
s the added State
Reimplemented from ell::SC_Counting.
Definition at line 20 of file SC_Maximum.cc.
const State *const ell::SC_Counting::getLastAdded | ( | ) | const [virtual, inherited] |
Returns last added State.
- Returns:
- last added State
Implements ell::StateCollector.
Definition at line 37 of file SC_Counting.cc.
const State *const ell::SC_Maximum::getMaximumState | ( | ) | const |
Returns the maximal State seen so far.
- Returns:
- the State
Definition at line 36 of file SC_Maximum.cc.
size_t ell::SC_Counting::size | ( | ) | const [virtual, inherited] |
Returns number of added States.
- Returns:
- the number of added states
Implements ell::StateCollector.
Definition at line 30 of file SC_Counting.cc.
Field Documentation
State* ell::SC_Counting::lastAdded [protected, inherited] |
State* ell::SC_Maximum::maxEState [protected] |
Definition at line 286 of file StateCollector.hh.
size_t ell::SC_Counting::stateCount [protected, inherited] |
The documentation for this class was generated from the following files:
- src/ell/StateCollector.hh
- src/ell/SC_Maximum.cc