#include <SimObjectArrayFactory.h>
Public Member Functions | |
SimObjectArrayFactory (vector< SimObjectFactory * > const &objectList) | |
SimObjectArrayFactory (size_t size=0) | |
virtual | ~SimObjectArrayFactory () |
virtual void | add (SimObjectFactory const *const factory) |
virtual void | reset () |
virtual SimObject * | create (void) |
Return a pointer to a newly created SimObject using the factories number engine (use setRandomEngine to specify). | |
virtual SimObject * | create (RandomEngine *eng) |
Return a pointer to a newly created SimObject using the random number engine. | |
virtual object_type_t | getObjectTypeID () const |
Return te object type of the objects generated by this factory. |
Definition at line 15 of file SimObjectArrayFactory.h.
SimObjectArrayFactory::SimObjectArrayFactory | ( | vector< SimObjectFactory * > const & | objectList | ) |
Definition at line 4 of file SimObjectArrayFactory.cpp.
SimObjectArrayFactory::SimObjectArrayFactory | ( | size_t | size = 0 |
) |
Definition at line 15 of file SimObjectArrayFactory.cpp.
SimObjectArrayFactory::~SimObjectArrayFactory | ( | ) | [virtual] |
Definition at line 26 of file SimObjectArrayFactory.cpp.
void SimObjectArrayFactory::add | ( | SimObjectFactory const *const | factory | ) | [virtual] |
Definition at line 20 of file SimObjectArrayFactory.cpp.
References SimObjectFactory::create().
void SimObjectArrayFactory::reset | ( | ) | [virtual] |
Definition at line 31 of file SimObjectArrayFactory.cpp.
SimObject * SimObjectArrayFactory::create | ( | void | ) | [virtual] |
Return a pointer to a newly created SimObject using the factories number engine (use setRandomEngine to specify).
Definition at line 41 of file SimObjectArrayFactory.cpp.
Referenced by create().
SimObject * SimObjectArrayFactory::create | ( | RandomEngine * | eng | ) | [virtual] |
Return a pointer to a newly created SimObject using the random number engine.
Definition at line 36 of file SimObjectArrayFactory.cpp.
References create().
object_type_t SimObjectArrayFactory::getObjectTypeID | ( | ) | const [virtual] |
Return te object type of the objects generated by this factory.
Reimplemented from SimObjectFactory.
Definition at line 48 of file SimObjectArrayFactory.cpp.