RVLAlg::ListAlg Class Reference

ListAlg behaves like a linked list of algorithms. More...

#include <alg.hh>

Inheritance diagram for RVLAlg::ListAlg:

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

Public Member Functions

 ListAlg (Algorithm &first)
 ListAlg (Algorithm &first, Algorithm &next)
virtual void run ()

Protected Attributes

bool islist
Algorithmone
Algorithmtwo

Detailed Description

ListAlg behaves like a linked list of algorithms.

The object contains an algorithm and a ListAlg.

ListAlg -> Algorithm | Algorithm ListAlg

When run(), the ListAlg runs its Algorithm, and then runs the trailing ListAlg.

Note that since ListAlg is an Algorithm, you can in fact build arbitrary trees of Algorithms by passing ListAlgs as both inputs to the constructor. Such a tree would then run by running the left branch followed by the right branch.

Return true if all algs in list are successful.

Definition at line 106 of file alg.hh.


Constructor & Destructor Documentation

RVLAlg::ListAlg::ListAlg ( Algorithm first  ) 

Definition at line 108 of file alg.hh.

RVLAlg::ListAlg::ListAlg ( Algorithm first,
Algorithm next 
)

Definition at line 109 of file alg.hh.


Member Function Documentation

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

Implements RVLAlg::Algorithm.

Reimplemented in RVLAlg::CondListAlg.

Definition at line 112 of file alg.hh.

References islist, one, RVLAlg::Algorithm::run(), and two.


Member Data Documentation

bool RVLAlg::ListAlg::islist [protected]

Definition at line 119 of file alg.hh.

Referenced by run().

Algorithm& RVLAlg::ListAlg::one [protected]

Definition at line 120 of file alg.hh.

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

Algorithm& RVLAlg::ListAlg::two [protected]

Definition at line 121 of file alg.hh.

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


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