This class provides an efficient way to iterate over the plan of a resource aggregated in time buckets. More...
#include <model.h>

Public Member Functions | |
| PlanIterator (Resource *, PyObject *) | |
| ~PlanIterator () | |
Public Member Functions inherited from frepple::utils::PythonExtension< Resource::PlanIterator > | |
| PythonExtension () | |
| virtual | ~PythonExtension () |
Public Member Functions inherited from frepple::utils::PythonExtensionBase | |
| virtual PyObject * | call (const PythonObject &args, const PythonObject &kwds) |
| virtual int | compare (const PyObject *other) const |
| virtual PyObject * | getattro (const Attribute &attr) |
| Py_ssize_t | getReferenceCount () const |
| void | initType (const MetaClass *t) |
| void | initType (PyTypeObject *t) |
| PythonExtensionBase () | |
| void | resetReferenceCount () |
| virtual int | setattro (const Attribute &attr, const PythonObject &field) |
| virtual PyObject * | str () const |
| virtual | ~PythonExtensionBase () |
Static Public Member Functions | |
| static int | initialize () |
Static Public Member Functions inherited from frepple::utils::PythonExtension< Resource::PlanIterator > | |
| static void | deallocator (PyObject *o) |
| static PythonType & | getType () |
Additional Inherited Members | |
Protected Member Functions inherited from frepple::utils::NonCopyable | |
| NonCopyable () | |
| ~NonCopyable () | |
Static Protected Member Functions inherited from frepple::utils::PythonExtensionBase | |
| static PythonType * | registerPythonType (int, const type_info *) |
Static Protected Attributes inherited from frepple::utils::PythonExtensionBase | |
| static vector< PythonType * > | table |
This class provides an efficient way to iterate over the plan of a resource aggregated in time buckets.
| frepple::Resource::PlanIterator::PlanIterator | ( | Resource * | r, |
| PyObject * | o | ||
| ) |
Constructor. The first argument is the resource whose plan we're looking at. The second argument is a Python iterator over a list of dates. These dates define the buckets at which we aggregate the resource plan.
Definition at line 519 of file resource.cpp.
| frepple::Resource::PlanIterator::~PlanIterator | ( | ) |
Destructor.
Definition at line 567 of file resource.cpp.
|
static |
Definition at line 508 of file resource.cpp.