#include <ModelingObjectMap.h>
Inheritance diagram for OSCAR::ModelingObjectMap:

Public Methods | |
| ModelingObjectMap () | |
| ModelingObjectMap (const ModelingObjectMap &arg) | |
| virtual | ~ModelingObjectMap () |
| ModelingObjectMap & | operator= (const ModelingObjectMap &rhs) |
| bool | AddObject (ModelingObject *toAdd) |
| bool | RemoveObject (const ModelingObject *toRemove) |
| bool | RemoveObject (const String toRemove) |
| ModelingObject * | Get (const String toGet) |
| bool | Set (ModelingObject *toSet) |
| bool | ClearMap () |
Protected Attributes | |
| std::map< String, ModelingObject * > | objectMap |
|
|
Default constructor, creates an empty modeling object map.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
AddObject Adds the object given in the argument to the map, using the objects internaly set name as the key.
|
|
|
Clears map. After this function is invoked, the map will be empty.
|
|
|
Get Get the ModelingObject pointer which corresponds to the inputted String toGet.
|
|
|
operator =
|
|
|
RemoveObject Removes from the map the object who's key (name) is given in the argument.
|
|
|
RemoveObject Removes the object given in the argument from the map.
|
|
|
Re-set the specified ModelingObjects address in the map. In order for this function to work correctly the specified ModelingObject must have already been added to the map, and the name of the ModelingObject must not have changed, and the name of the ModelingObject must not be a duplicate of another object. Any of these situations will cause the function to work incorrectly.
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |