Atoms Crowd
7.0.0
|
Container for all agent types. More...
#include <AgentTypes.h>
Public Member Functions | |
AgentTypes () | |
constructor | |
~AgentTypes () | |
Destructor. | |
AgentTypes (const AgentTypes &) | |
Copy constructor. | |
AgentTypes & | operator= (const AgentTypes &) |
Assign operator. | |
AgentTypePtr | agentType (const std::string &typeName) |
Gets the agent type with the given name. More... | |
AgentTypeCPtr | agentType (const std::string &typeName) const |
Gets the agent type with the given name. More... | |
void | addAgentType (const std::string &name, const AgentType &agentType, bool replace=true) |
Adds an agent type to the map. More... | |
void | removeAgentType (const std::string &name) |
Removes an agent type from the map. More... | |
std::vector< std::string > | agentTypeNames () const |
Gets all agent types names. More... | |
bool | agentTypeExists (const std::string &name) const |
Checks if an agent type with the given name exists. More... | |
unsigned int | numAgentTypes () const |
Gets the number of agent types. | |
void | clear () |
Removes all agent types. | |
Static Public Member Functions | |
static AgentTypes & | instance () |
Singleton access for global data. | |
Container for all agent types.
void Atoms::AgentTypes::addAgentType | ( | const std::string & | name, |
const AgentType & | agentType, | ||
bool | replace = true |
||
) |
Adds an agent type to the map.
name | agent type name \patam agentType Agent type |
AgentTypePtr Atoms::AgentTypes::agentType | ( | const std::string & | typeName | ) |
Gets the agent type with the given name.
typeName | agent type name |
AgentTypeCPtr Atoms::AgentTypes::agentType | ( | const std::string & | typeName | ) | const |
Gets the agent type with the given name.
typeName | agent type name |
bool Atoms::AgentTypes::agentTypeExists | ( | const std::string & | name | ) | const |
Checks if an agent type with the given name exists.
name | Agent type name |
std::vector<std::string> Atoms::AgentTypes::agentTypeNames | ( | ) | const |
Gets all agent types names.
void Atoms::AgentTypes::removeAgentType | ( | const std::string & | name | ) |
Removes an agent type from the map.
name | agent type name |