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:

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

Additional Inherited Members

- Protected Member Functions inherited from frepple::utils::NonCopyable
 NonCopyable ()
 
 ~NonCopyable ()
 
- Static Protected Member Functions inherited from frepple::utils::PythonExtensionBase
static PythonTyperegisterPythonType (int, const type_info *)
 
- Static Protected Attributes inherited from frepple::utils::PythonExtensionBase
static vector< PythonType * > table
 

Detailed Description

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

Definition at line 4031 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 519 of file resource.cpp.

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

Destructor.

Definition at line 567 of file resource.cpp.

Member Function Documentation

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

Definition at line 508 of file resource.cpp.


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