frepple::ResourceInfinite Class Reference

This class represents a resource that'll never have any capacity shortage. More...

#include <model.h>

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

List of all members.

Public Member Functions

virtual size_t getSize () const
virtual const MetaClassgetType () 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 MetaClassmetadata

Detailed Description

This class represents a resource that'll never have any capacity shortage.

Definition at line 3492 of file model.h.


Constructor & Destructor Documentation

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

Definition at line 3498 of file model.h.


Member Function Documentation

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

Return the memory size of the object in bytes.

Implements frepple::utils::Object.

Definition at line 3501 of file model.h.

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.

Definition at line 3497 of file model.h.

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.

Definition at line 3495 of file model.h.

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.


Member Data Documentation

Reimplemented from frepple::Resource.

Definition at line 3500 of file model.h.


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

Generated on 25 Feb 2010 for frePPLe by  doxygen 1.6.1