gatb.core-API-0.0.0
|
Interface for listening to iteration progress. More...
#include <Iterator.hpp>
Public Member Functions | |
virtual | ~IteratorListener () |
virtual void | init () |
virtual void | finish () |
virtual void | inc (u_int64_t ntasks_done) |
virtual void | setMessage (const std::string &msg) |
virtual void | set (u_int64_t ntasks_done) |
virtual void | reset (u_int64_t ntasks) |
Public Member Functions inherited from SmartPointer | |
void | use () |
void | forget () |
Public Member Functions inherited from ISmartPointer | |
virtual | ~ISmartPointer () |
Additional Inherited Members | |
Protected Member Functions inherited from SmartPointer | |
SmartPointer () | |
virtual | ~SmartPointer () |
Interface for listening to iteration progress.
This interface is intended to be notified by some progress job, and in particular to the progression of an iteration with an Iterator instance.
It defines 3 methods:
Actually, this is a little more than just an interface since it provides empty implementations for the 3 methods; this will ease the development to clients who wants only to get 'inc' notifications but are not interested to do specific actions at the beginning and the end of the iteration.
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Finish the progress information.
Reimplemented in Progress.
|
inlinevirtual |
Increase the number of currently done tasks.
Reimplemented in Progress.
|
inlinevirtual |
Initialization of the object.
Reimplemented in ProgressTimer, and Progress.
|
inlinevirtual |
Set the total number of tasks done.
[in] | ntasks | : sets the total number of job. |
Reimplemented in Progress.
|
inlinevirtual |
Set the current number of tasks done.
[in] | ntasks_done | : sets the current number of job done. |
Reimplemented in Progress.
|
inlinevirtual |
Associate a message to the listener.
[in] | msg | : message to be set. |
Reimplemented in Progress.