#include <alg.hh>
Inheritance diagram for RVLAlg::LoopAlg:
Public Member Functions | |
LoopAlg (Algorithm &alg, Terminator &stop) | |
virtual void | run () |
Protected Attributes | |
Algorithm & | inside |
Terminator & | term |
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.
RVLAlg::LoopAlg::LoopAlg | ( | Algorithm & | alg, | |
Terminator & | stop | |||
) |
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().
Algorithm& RVLAlg::LoopAlg::inside [protected] |
Terminator& RVLAlg::LoopAlg::term [protected] |