This class represents a material buffer with an infinite supply of extra material. More...
#include <model.h>
Public Member Functions | |
BufferInfinite (const string &c) | |
virtual size_t | getSize () const |
virtual const MetaClass & | getType () const |
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 material buffer with an infinite supply of extra material.
In other words, it never constrains the plan and it doesn't propagate any requirements upstream.
Definition at line 2898 of file model.h.
frepple::BufferInfinite::BufferInfinite | ( | const string & | c | ) | [inline, explicit] |
virtual size_t frepple::BufferInfinite::getSize | ( | ) | const [inline, virtual] |
Return the memory size of the object in bytes.
Implements frepple::utils::Object.
virtual const MetaClass& frepple::BufferInfinite::getType | ( | ) | const [inline, virtual] |
This returns the type information on the object, a bit similar to the standard type_info information.
Reimplemented from frepple::Buffer.
virtual void frepple::BufferInfinite::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::Buffer.
void frepple::BufferInfinite::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::Buffer.
Definition at line 569 of file buffer.cpp.
const MetaClass * frepple::BufferInfinite::metadata [static] |
Reimplemented from frepple::Buffer.