In file repeat.h:

class repeatiterator : public testiterator

Object for implementing a repeat test iterator

Inheritance:


Public Methods

explicit repeatiterator ()
Default constructor
virtual bool begin (std::ostringstream& errmsg)
Startup method.
virtual bool evaluate (std::ostringstream& errmsg, bool& anotherone, int testrindex, int& rindex, bool& notify)
Evaluation method.
virtual int numOfSteps () const
Setup method.
virtual testiterator* self () const
New repeat test iterator object.

Protected Fields

int numsteps
number of iterations

Inherited from testiterator:

Public Methods

virtual bool init(diagStorage& Storage, excitationManager& Excitations, diagtest& Test, const cmdnotify& Notify, bool rtMode = true)
virtual bool end(std::ostringstream& errmsg)
virtual bool setup(std::ostringstream& errmsg, tainsec_t starttime)
virtual string name() const
virtual int step() const

Protected Fields

recursivemutex mux
string myname
bool RTmode
diagStorage* storage
testpointMgr* tpMgr
excitationManager* excitations
diagtest* test
cmdnotify notify
int stepnow

Documentation

Repeat test iterator This object implements the test iterator for repeating tests. The only parameter is the number of iterations.

explicit repeatiterator()
Constructs a repeat test iterator object.

virtual bool begin(std::ostringstream& errmsg)
Begins the test iterator. Reads the repeat value from the storage object.
Returns:
true if successful

virtual bool evaluate(std::ostringstream& errmsg, bool& anotherone, int testrindex, int& rindex, bool& notify)
Evaluates a test after each iteration. Returns false if the iteration count exceeds the total number of steps (repeats).
Returns:
true if successful
Parameters:
errmsg - error message stream
anotherone - true if continue, false if stop
testrindex - first result index of test
rindex - result index for iterator result (in/out)
notify - if true upon return sends a notfication message

virtual int numOfSteps() const
Returns the total number of repeats.
Returns:
number of iteration steps

virtual testiterator* self() const
A function which returns a new repeat test iterator object.
Returns:
new test iterator

int numsteps
number of iterations


This class has no child classes.
Author:
Written April 1999 by Daniel Sigg
Version:
0.1

alphabetic index hierarchy of classes


Please send questions and comments to sigg_d@ligo-wa.caltech.edu


generated by doc++