RVLAlg::CondListAlg Class Reference

CondListAlg is like a ListAlg, except that it only runs the second alg conditionally, when the Terminator supplied tests false. More...

#include <alg.hh>

Inheritance diagram for RVLAlg::CondListAlg:

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

Public Member Functions

 CondListAlg (Algorithm &first, Algorithm &next, Terminator &_stop)
virtual void run ()

Protected Attributes

Terminatorstop

Detailed Description

CondListAlg is like a ListAlg, except that it only runs the second alg conditionally, when the Terminator supplied tests false.

This is useful for constructing backup methods if the original method fails.

Definition at line 213 of file alg.hh.


Constructor & Destructor Documentation

RVLAlg::CondListAlg::CondListAlg ( Algorithm first,
Algorithm next,
Terminator _stop 
)

Definition at line 216 of file alg.hh.


Member Function Documentation

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

Reimplemented from RVLAlg::ListAlg.

Definition at line 219 of file alg.hh.

References RVLAlg::ListAlg::one, RVLAlg::Terminator::query(), RVLAlg::Algorithm::run(), stop, and RVLAlg::ListAlg::two.


Member Data Documentation

Terminator& RVLAlg::CondListAlg::stop [protected]

Definition at line 228 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