This class represents a resource that'll never have any capacity shortage. More...
#include <model.h>
Public Member Functions | |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
ResourceInfinite (const string &c) | |
virtual void | solve (Solver &s, void *v=NULL) const |
virtual void | writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const |
Static Public Attributes | |
static const MetaClass * | metadata |
This class represents a resource that'll never have any capacity shortage.
Definition at line 3492 of file model.h.
frepple::ResourceInfinite::ResourceInfinite | ( | const string & | c | ) | [inline, explicit] |
virtual size_t frepple::ResourceInfinite::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
virtual const MetaClass& frepple::ResourceInfinite::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Reimplemented from frepple::Resource.
virtual void frepple::ResourceInfinite::solve | ( | Solver & | s, | |
void * | v = NULL | |||
) | const [inline, virtual] |
This method is called by solver classes. The implementation of this class simply calls the solve method on the solver class. Using the polymorphism the solver can implement seperate methods for different plannable subclasses.
Reimplemented from frepple::Resource.
void frepple::ResourceInfinite::writeElement | ( | XMLOutput * | , | |
const Keyword & | , | |||
mode | = DEFAULT | |||
) | const [virtual] |
Called while writing the model into an XML-file. The user class should write itself out, using the IOutStream members for its "simple" members and calling writeElement recursively for any contained objects. Not all classes are expected to implement this method. In instances of such a class can be created but can't be persisted. E.g. Command
Reimplemented from frepple::Resource.
Definition at line 211 of file resource.cpp.
const MetaClass * frepple::ResourceInfinite::metadata [static] |
Reimplemented from frepple::Resource.