Struct SubAgentData
Defined in File SubAgentData.h
Inheritance Relationships
Base Type
public std::enable_shared_from_this< SubAgentData >
Struct Documentation
-
struct SubAgentData : public std::enable_shared_from_this<SubAgentData>
Holds all the mappings between a an agent in the submodel and the parent model States and variables can be mapped
Public Types
-
typedef std::unordered_map<std::string, std::string> Mapping
Map of submodel item name:parent model item name map<string, string>
Public Functions
-
bool operator==(const SubAgentData &rhs) const
Equality operator, checks whether SubAgentData hierarchies are functionally the same
Note
Instead compare pointers if you wish to check that they are the same instance
- Returns:
True when models are the same
-
bool operator!=(const SubAgentData &rhs) const
Equality operator, checks whether SubAgentData hierarchies are functionally different
Note
Instead compare pointers if you wish to check that they are not the same instance
- Returns:
True when models are not the same
-
SubAgentData(const SubAgentData &other) = delete
Default copy constructor, not implemented
Public Members
-
std::weak_ptr<SubModelData> parent
The model which this agent is a member of
Protected Functions
Copy constructor This should only be called via clone();
Normal constructor This should only be called by SubModelDescription
Friends
- friend class SubAgentDescription
- friend class SubModelDescription
- friend struct ModelData
-
typedef std::unordered_map<std::string, std::string> Mapping