Public Member Functions | Protected Attributes | List of all members
psi::TaskListComputer Class Referenceabstract

#include <oeprop.h>

Inheritance diagram for psi::TaskListComputer:

Public Member Functions

virtual void print_header ()=0
 Print header. More...
void add (const std::string &task)
 Add a single task to the queue. More...
void add (std::vector< std::string > tasks)
 Add a set of tasks to the queue. More...
void clear ()
 Clear task queue. More...
void set_title (const std::string &title)
 Set title for use in saving information. More...
virtual void compute ()=0
 Compute properties. More...
void set_print (int print)
void set_debug (int debug)
 TaskListComputer ()
virtual ~TaskListComputer ()

Protected Attributes

int print_
 Print flag. More...
int debug_
 Debug flag. More...
std::string title_
 The title of this Prop object, for use in saving info. More...
std::set< std::string > tasks_
 The set of tasks to complete. More...

Detailed Description

The TaskListComputer, a utility base class to add, remove tasks to a tasklist.

Historically this class was part of Prop. As Prop provides lots of meaningful functionality without the need to actually compute everything asap in a task loop, it was split off here.


Constructor & Destructor Documentation

psi::TaskListComputer::TaskListComputer ( )
virtual psi::TaskListComputer::~TaskListComputer ( )

Member Function Documentation

void psi::TaskListComputer::add ( const std::string &  task)

Add a single task to the queue.

void psi::TaskListComputer::add ( std::vector< std::string >  tasks)

Add a set of tasks to the queue.

void psi::TaskListComputer::clear ( )

Clear task queue.

virtual void psi::TaskListComputer::compute ( )
pure virtual

Compute properties.

Implemented in psi::OEProp.

virtual void psi::TaskListComputer::print_header ( )
pure virtual

Print header.

Implemented in psi::OEProp.

void psi::TaskListComputer::set_debug ( int  debug)
void psi::TaskListComputer::set_print ( int  print)
void psi::TaskListComputer::set_title ( const std::string &  title)

Set title for use in saving information.

Member Data Documentation

int psi::TaskListComputer::debug_

Debug flag.

int psi::TaskListComputer::print_

Print flag.

std::set<std::string> psi::TaskListComputer::tasks_

The set of tasks to complete.

std::string psi::TaskListComputer::title_

The title of this Prop object, for use in saving info.

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