RVLAlg::LoopAlg Class Reference

LoopAlg takes an inside Algorithm and a Terminator. More...

#include <alg.hh>

Inheritance diagram for RVLAlg::LoopAlg:

RVLAlg::Algorithm RVLAlg::DoLoopAlg List of all members.

Public Member Functions

 LoopAlg (Algorithm &alg, Terminator &stop)
virtual void run ()

Protected Attributes

Algorithminside
Terminatorterm

Detailed Description

LoopAlg takes an inside Algorithm and a Terminator.

It runs the inside algorithm as long as the Terminator returns false, and the inside algorithm continues to run successfully.

Thus, the inside alg will run zero or more times. This mimics the behavior of a C while loop.

Definition at line 170 of file alg.hh.


Constructor & Destructor Documentation

RVLAlg::LoopAlg::LoopAlg ( Algorithm alg,
Terminator stop 
)

Definition at line 172 of file alg.hh.


Member Function Documentation

virtual void RVLAlg::LoopAlg::run (  )  [virtual]

Implements RVLAlg::Algorithm.

Reimplemented in RVLAlg::DoLoopAlg.

Definition at line 174 of file alg.hh.

References inside, RVLAlg::Terminator::query(), RVLAlg::Algorithm::run(), and term.

Referenced by RVLAlg::DoLoopAlg::run().


Member Data Documentation

Algorithm& RVLAlg::LoopAlg::inside [protected]

Definition at line 187 of file alg.hh.

Referenced by RVLAlg::DoLoopAlg::run(), and run().

Terminator& RVLAlg::LoopAlg::term [protected]

Definition at line 188 of file alg.hh.

Referenced by run().


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for RvlAlg by  doxygen 1.4.7