class HCL_Recorder_d : public HCL_Base

HCL_Recorder defines an interface for "recorder" objects, used principally for recording intermediate results during an iterative process

Inheritance:


Public Methods

virtual void Record ( const HCL_Vector_d & Input )
Record - copy input vector
virtual void Rewind () const
Rewind - go to first vector recorded
virtual void PlayBack ( HCL_Vector_d & Output ) const
PlayBack - copy current stored vector onto vector parameter
virtual int Next () const
Next - advance to next recorded vector - returns 0 when at end
virtual int Number () const
Number - how many vectors currently stored
virtual void Erase ()
Erase - deletes currently stored vectors;

Inherited from HCL_Base:

Public Methods

void IncCount() const
void DecCount() const
int Count() const
virtual ostream& Write(ostream &) const

Documentation

HCL_Recorder defines an interface for "recorder" objects, used principally for recording intermediate results during an iterative process. Its Record method takes a vector argument; any derived class will impement a storage method appropriate to a concrete vector type. Disk image of the recorded data might be created on the fly, or during destruction of the Recorder object.

Usage: instantiate a recorder object corresponding to the concrete vector class used in the iteration. Pass this object to the constructor of the iterative method (this of course presumes that the iterative method is set up to record intermediate results, and so taks a Recorder object as an argument to its constructor). Then use the PlayBack method to extract intermediate iterates after termination of the iteration.

virtual void Record( const HCL_Vector_d & Input )
Record - copy input vector

virtual void Rewind() const
Rewind - go to first vector recorded

virtual void PlayBack( HCL_Vector_d & Output ) const
PlayBack - copy current stored vector onto vector parameter

virtual int Next() const
Next - advance to next recorded vector - returns 0 when at end

virtual int Number() const
Number - how many vectors currently stored

virtual void Erase()
Erase - deletes currently stored vectors;


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de