|
LIBINT 2.9.0
|
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. | |
| bool | exists (const std::string &task_label) const |
| TasksCIter | find (const std::string &task_label) const |
| Find the task by name and return the iterator pointing to it. | |
| 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.
| bool LibraryTaskManager::exists | ( | const std::string & | task_label | ) | const |
task_label exists | LibraryTaskManager::TasksCIter LibraryTaskManager::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.