frepple::Resource::PlanIterator Class Reference

This class provides an efficient way to iterate over the plan of a resource aggregated in time buckets. More...

#include <model.h>

Inheritance diagram for frepple::Resource::PlanIterator:

List of all members.

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 PythonTypegetType ()

Detailed Description

This class provides an efficient way to iterate over the plan of a resource aggregated in time buckets.

Definition at line 3946 of file model.h.


Constructor & Destructor Documentation

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 507 of file resource.cpp.

frepple::Resource::PlanIterator::~PlanIterator ( )

Destructor.

Definition at line 555 of file resource.cpp.


Member Function Documentation

int frepple::Resource::PlanIterator::initialize ( )
static

Definition at line 496 of file resource.cpp.


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