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

ell::SC_Outstream Class Reference

#include <StateCollector.hh>

Inheritance diagram for ell::SC_Outstream:

Inheritance graph
[legend]

Detailed Description

A StateCollector that prints each reported state to the given outstream using the additional given flag to separate the printed States.

Author:
Martin Mann

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

StatelastAdded
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]

the last added State

Definition at line 57 of file StateCollector.hh.

std::ostream& ell::SC_Outstream::out [protected]

the stream to write the states to

Definition at line 325 of file StateCollector.hh.

size_t ell::SC_Counting::stateCount [protected, inherited]

the number of added States

Definition at line 59 of file StateCollector.hh.

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: