frepple::BufferInfinite Class Reference

This class represents a material buffer with an infinite supply of extra material. More...

#include <model.h>

Inheritance diagram for frepple::BufferInfinite:
frepple::Buffer frepple::utils::HasHierarchy< Buffer > frepple::HasLevel frepple::Plannable frepple::utils::HasDescription frepple::utils::HasName< Buffer > frepple::utils::Object frepple::HasProblems frepple::Solvable frepple::utils::NonCopyable frepple::utils::Tree::TreeNode

List of all members.

Public Member Functions

 BufferInfinite (const string &c)
virtual size_t getSize () const
virtual const MetaClassgetType () const
virtual void solve (Solver &s, void *v=NULL) const
virtual void writeElement (XMLOutput *, const Keyword &, mode=DEFAULT) const

Static Public Attributes

static const MetaClassmetadata

Detailed Description

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.


Constructor & Destructor Documentation

frepple::BufferInfinite::BufferInfinite ( const string &  c  )  [inline, explicit]

Definition at line 2906 of file model.h.


Member Function Documentation

virtual size_t frepple::BufferInfinite::getSize (  )  const [inline, virtual]

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 2904 of file model.h.

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.

Definition at line 2903 of file model.h.

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.

Definition at line 2901 of file model.h.

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.


Member Data Documentation

Reimplemented from frepple::Buffer.

Definition at line 2908 of file model.h.


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

Generated on 25 Sep 2009 for frePPLe by  doxygen 1.6.1