LIBINT
2.1.0-stable
|
Manages tasks. This is a Singleton. More...
#include <task.h>
Public Types | |
typedef Tasks::const_iterator | TasksCIter |
typedef Tasks::iterator | TasksIter |
Public Member Functions | |
unsigned int | ntask () const |
Number of tasks. | |
TasksCIter | first () const |
returns iterator to the first task | |
TasksCIter | plast () const |
returns iterator to past the last task | |
LibraryTask & | task (unsigned int i) |
i-th tasks | |
void | add (const std::string &task_label) |
Adds a new task. Do nothing if the task exists already. | |
TasksCIter | find (const std::string &task_label) const |
Find the task by name and return the iterator pointing to it. Throws ProgrammingError, if the task is not found. | |
void | current (const std::string &task_label) |
Makes this task current (must have been added already) | |
LibraryTask & | current () |
Returns the current task. | |
Static Public Member Functions | |
static LibraryTaskManager & | Instance () |
LibraryTaskManager is a Singleton. | |
Manages tasks. This is a Singleton.