Stride Reference Manual
1.0
|
You can see this class as a kind of planner that stores events in the near future. More...
#include <SimplePlanner.h>
Public Types | |
using | Block = vector< unique_ptr< T >> |
using | Agenda = list< unique_ptr< Block >> |
Public Member Functions | |
Block * | getModifiableDay (unsigned int days) |
const Block * | getDay (unsigned int days) const |
const Block * | today () const |
void | add (unsigned int days, T thing) |
void | nextDay () |
unsigned int | days () const |
Agenda & | getAgenda () |
const Agenda & | getAgenda () const |
unsigned int | size () const |
Private Attributes | |
Agenda | m_agenda |
Static Private Attributes | |
static Block | g_empty_day = SimplePlanner<T>::Block() |
You can see this class as a kind of planner that stores events in the near future.
You can then ask the planner what you should 'do' that day. (Internally, it just saves a list of vectors of 'events' and does some management to make sure there are enough vectors.)
Used by Simulator for remembering when people have to return home from their travels. (The 'event' is a traveller.)
Definition at line 23 of file SimplePlanner.h.
using stride::util::SimplePlanner< T >::Block = vector<unique_ptr<T>> |
Definition at line 25 of file SimplePlanner.h.
using stride::util::SimplePlanner< T >::Agenda = list<unique_ptr<Block>> |
Definition at line 26 of file SimplePlanner.h.
|
inline |
Definition at line 28 of file SimplePlanner.h.
|
inline |
Definition at line 43 of file SimplePlanner.h.
|
inline |
Definition at line 52 of file SimplePlanner.h.
|
inline |
Definition at line 56 of file SimplePlanner.h.
|
inline |
Definition at line 62 of file SimplePlanner.h.
|
inline |
Definition at line 66 of file SimplePlanner.h.
|
inline |
Definition at line 70 of file SimplePlanner.h.
|
inline |
Definition at line 74 of file SimplePlanner.h.
|
inline |
Definition at line 78 of file SimplePlanner.h.
|
private |
Definition at line 89 of file SimplePlanner.h.
|
staticprivate |
Definition at line 90 of file SimplePlanner.h.