ell::SC_Counting Class Reference
#include <StateCollector.hh>
Inheritance diagram for ell::SC_Counting:
Detailed Description
This class simply keeps track of the number of added States.
Definition at line 52 of file StateCollector.hh.
Public Member Functions | |
virtual void | add (const State &s) |
virtual const State *const | getLastAdded () const |
SC_Counting () | |
virtual size_t | size () const |
virtual | ~SC_Counting () |
Protected Attributes | |
State * | lastAdded |
size_t | stateCount |
Constructor & Destructor Documentation
ell::SC_Counting::SC_Counting | ( | ) |
Definition at line 6 of file SC_Counting.cc.
ell::SC_Counting::~SC_Counting | ( | ) | [virtual] |
Definition at line 11 of file SC_Counting.cc.
Member Function Documentation
void ell::SC_Counting::add | ( | const State & | s | ) | [virtual] |
Increments State counter.
- Parameters:
-
s the added State
Implements ell::StateCollector.
Reimplemented in ell::SC_ListingCompr, ell::SC_Maximum, ell::SC_Outstream, ell::SC_PartitionFunction, and ell::SC_PartitionFunction_Shifted.
Definition at line 22 of file SC_Counting.cc.
const State *const ell::SC_Counting::getLastAdded | ( | ) | const [virtual] |
Returns last added State.
- Returns:
- last added State
Implements ell::StateCollector.
Definition at line 37 of file SC_Counting.cc.
size_t ell::SC_Counting::size | ( | ) | const [virtual] |
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] |
size_t ell::SC_Counting::stateCount [protected] |
The documentation for this class was generated from the following files:
- src/ell/StateCollector.hh
- src/ell/SC_Counting.cc