ell::SC_Counting Class Reference
#include <SC_Counting.hh>
Inheritance diagram for ell::SC_Counting:
Detailed Description
This class simply keeps track of the number of added States.
Definition at line 13 of file SC_Counting.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_Listing, ell::SC_ListingCompr, and ell::SC_Outstream.
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.
Reimplemented in ell::SC_Listing.
Definition at line 39 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.
Reimplemented in ell::SC_Listing.
Definition at line 32 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/SC_Counting.hh
- src/ell/SC_Counting.cc