Construct version 5.4.4
An agent based modeling framework
|
Container for Construct models. More...
Public Member Functions | |
~ModelManager (void) | |
bool | contains (const std::string &name) const noexcept |
Model * | get_model (const std::string &name) |
const Model * | get_model (const std::string &name) const |
void | add_model (const std::string &name, Model *model) |
Public Attributes | |
std::unordered_map< std::string, Model * > | _models |
std::unordered_map< std::string, Model * > | queued_models |
Container for Construct models.
The model manager stores all models as pointers in an unordered_map. As the number of active models is not expected to be large, unordered_map is used instead of map. The model manager creates pointers for models based on the XML input. A model's primary method of interacting with the model manager should be either checking to see if a model is active, or to add a PlaceHolder model when there is a model in a model.
|
inline |
summary>
|
inlinenoexcept |
summary>
|
inline |
summary>
|
inline |
summary>
std::unordered_map<std::string, Model*> ModelManager::_models |
summary>
std::unordered_map<std::string, Model*> ModelManager::queued_models |
summary>