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

ell::SC_Maximum Class Reference

#include <StateCollector.hh>

Inheritance diagram for ell::SC_Maximum:

Inheritance graph
[legend]

Detailed Description

A StateCollector that stores the State which is maximal according to the State::less operator.

Author:
Martin Mann, Hannes Kochniss

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

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

the last added State

Definition at line 57 of file StateCollector.hh.

Definition at line 286 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.


The documentation for this class was generated from the following files: