LIBINT  2.6.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
libint2::LibraryTaskManager Class Reference

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
 
LibraryTasktask (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. Throws ProgrammingError, if the task is not found.
 
void current (const std::string &task_label)
 Makes this task current (must have been added already)
 
LibraryTaskcurrent ()
 Returns the current task.
 

Static Public Member Functions

static LibraryTaskManagerInstance ()
 LibraryTaskManager is a Singleton.
 

Detailed Description

Manages tasks. This is a Singleton.

Member Function Documentation

◆ exists()

bool LibraryTaskManager::exists ( const std::string &  task_label) const
Returns
true if task task_label exists

The documentation for this class was generated from the following files: