ell::SC_Outstream Class Reference
#include <StateCollector.hh>
Inheritance diagram for ell::SC_Outstream:

Detailed Description
A StateCollector that prints each reported state to the given outstream using the additional given flag to separate the printed States.
Definition at line 321 of file StateCollector.hh.
Public Member Functions | |
| virtual void | add (const State &s) |
| virtual const State *const | getLastAdded () const |
| SC_Outstream (std::ostream &out, const std::string &toAppend) | |
| virtual size_t | size () const |
| virtual | ~SC_Outstream () |
Protected Attributes | |
| State * | lastAdded |
| std::ostream & | out |
| size_t | stateCount |
| const std::string | strAdded |
Constructor & Destructor Documentation
| ell::SC_Outstream::SC_Outstream | ( | std::ostream & | out, | |
| const std::string & | toAppend | |||
| ) |
Constructs a StateCollector that writes all States to out stream.
- Parameters:
-
out the outstream to write to toAppend string written to stream AFTER each state
Definition at line 6 of file SC_Outstream.cc.
| ell::SC_Outstream::~SC_Outstream | ( | ) | [virtual] |
Definition at line 12 of file SC_Outstream.cc.
Member Function Documentation
| void ell::SC_Outstream::add | ( | const State & | s | ) | [virtual] |
This function is used to track all accepted intermediate States.
- Parameters:
-
s the accepted State
Reimplemented from ell::SC_Counting.
Definition at line 20 of file SC_Outstream.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.
| 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] |
std::ostream& ell::SC_Outstream::out [protected] |
size_t ell::SC_Counting::stateCount [protected, inherited] |
const std::string ell::SC_Outstream::strAdded [protected] |
additional string written to stream AFTER each state
Definition at line 328 of file StateCollector.hh.
The documentation for this class was generated from the following files:
- src/ell/StateCollector.hh
- src/ell/SC_Outstream.cc