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 Member Functions | |
static int | initialize () |
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 3049 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.
int frepple::BufferInfinite::initialize | ( | ) | [static] |
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 * | o, | |
const Keyword & | tag, | |||
mode | m = DEFAULT | |||
) | const [virtual] |
Reimplemented from frepple::Buffer.
Definition at line 612 of file buffer.cpp.
const MetaClass * frepple::BufferInfinite::metadata [static] |
Reimplemented from frepple::Buffer.