#include <task_stack_controller.h>
Public Types | |
typedef std::vector< Task < PRIO > >::const_iterator | TypedConstIter_t |
typedef std::vector< Task < PRIO > >::iterator | TypedIter_t |
Public Member Functions | |
void | activateAllTasks () |
void | activateHighestPrioTask () |
void | activateTask (std::string task_id) |
void | addTask (Task< PRIO > t) |
std::vector< Task< PRIO > >::iterator | beginTaskIter () |
void | clearAllTasks () |
int | countActiveTasks () const |
void | deactivateAllTasks () |
void | deactivateTask (typename std::vector< Task< PRIO > >::iterator it) |
void | deactivateTask (std::string task_id) |
ros::Time | getLastModificationTime () const |
std::vector< Task< PRIO > >::iterator | getTasksBegin () |
std::vector< Task< PRIO > >::iterator | getTasksEnd () |
std::vector< Task< PRIO > >::iterator | nextActiveTask () |
TaskStackController () | |
~TaskStackController () | |
Private Member Functions | |
void | updateModificationTime (bool change) |
Private Attributes | |
TypedIter_t | active_task_iter_ |
ros::Time | modification_time_ |
std::vector< Task< PRIO > > | tasks_ |
Definition at line 85 of file task_stack_controller.h.
typedef std::vector<Task<PRIO> >::const_iterator TaskStackController< PRIO >::TypedConstIter_t |
Definition at line 89 of file task_stack_controller.h.
typedef std::vector<Task<PRIO> >::iterator TaskStackController< PRIO >::TypedIter_t |
Definition at line 88 of file task_stack_controller.h.
TaskStackController< PRIO >::~TaskStackController | ( | ) | [inline] |
Definition at line 91 of file task_stack_controller.h.
TaskStackController< PRIO >::TaskStackController | ( | ) | [inline] |
Definition at line 96 of file task_stack_controller.h.
void TaskStackController< PRIO >::activateAllTasks | ( | ) |
Definition at line 190 of file task_stack_controller.h.
void TaskStackController< PRIO >::activateHighestPrioTask | ( | ) |
Definition at line 207 of file task_stack_controller.h.
void TaskStackController< PRIO >::activateTask | ( | std::string | task_id | ) |
Definition at line 232 of file task_stack_controller.h.
void TaskStackController< PRIO >::addTask | ( | Task< PRIO > | t | ) |
Insert new task sorted.
Definition at line 149 of file task_stack_controller.h.
std::vector< Task< PRIO > >::iterator TaskStackController< PRIO >::beginTaskIter | ( | ) |
Definition at line 306 of file task_stack_controller.h.
void TaskStackController< PRIO >::clearAllTasks | ( | ) |
Definition at line 313 of file task_stack_controller.h.
int TaskStackController< PRIO >::countActiveTasks | ( | ) | const |
Definition at line 131 of file task_stack_controller.h.
void TaskStackController< PRIO >::deactivateAllTasks | ( | ) |
Definition at line 270 of file task_stack_controller.h.
void TaskStackController< PRIO >::deactivateTask | ( | typename std::vector< Task< PRIO > >::iterator | it | ) |
Definition at line 246 of file task_stack_controller.h.
void TaskStackController< PRIO >::deactivateTask | ( | std::string | task_id | ) |
Definition at line 256 of file task_stack_controller.h.
ros::Time TaskStackController< PRIO >::getLastModificationTime | ( | ) | const |
Definition at line 321 of file task_stack_controller.h.
std::vector< Task< PRIO > >::iterator TaskStackController< PRIO >::getTasksBegin | ( | ) |
Definition at line 220 of file task_stack_controller.h.
std::vector< Task< PRIO > >::iterator TaskStackController< PRIO >::getTasksEnd | ( | ) |
Definition at line 226 of file task_stack_controller.h.
std::vector< Task< PRIO > >::iterator TaskStackController< PRIO >::nextActiveTask | ( | ) |
Definition at line 287 of file task_stack_controller.h.
void TaskStackController< PRIO >::updateModificationTime | ( | bool | change | ) | [private] |
Definition at line 327 of file task_stack_controller.h.
TypedIter_t TaskStackController< PRIO >::active_task_iter_ [private] |
Definition at line 126 of file task_stack_controller.h.
ros::Time TaskStackController< PRIO >::modification_time_ [private] |
Definition at line 127 of file task_stack_controller.h.
std::vector<Task<PRIO> > TaskStackController< PRIO >::tasks_ [private] |
Definition at line 125 of file task_stack_controller.h.