A container for self referencing information.
More...
#include <Self.h>
|
| Self () |
| Constructor. More...
|
|
| ~Self () |
| Destructor. More...
|
|
void | init_vars (madara::knowledge::KnowledgeBase &knowledge, const madara::knowledge::KnowledgeRecord::Integer &id) |
| Initializes variable containers. More...
|
|
void | init_vars (madara::knowledge::KnowledgeBase &knowledge, const std::string &self_prefix) |
| Initializes variable containers. More...
|
|
void | init_vars (madara::knowledge::Variables &knowledge, const madara::knowledge::KnowledgeRecord::Integer &id) |
| Initializes variable containers. More...
|
|
void | operator= (const Self &agent) |
| Assignment operator. More...
|
|
A container for self referencing information.
Definition at line 69 of file Self.h.
◆ Self()
gams::variables::Self::Self |
( |
| ) |
|
◆ ~Self()
gams::variables::Self::~Self |
( |
| ) |
|
◆ init_vars() [1/3]
void gams::variables::Self::init_vars |
( |
madara::knowledge::KnowledgeBase & |
knowledge, |
|
|
const madara::knowledge::KnowledgeRecord::Integer & |
id |
|
) |
| |
Initializes variable containers.
- Parameters
-
knowledge | the knowledge base that houses the variables |
id | node identifier |
◆ init_vars() [2/3]
void gams::variables::Self::init_vars |
( |
madara::knowledge::KnowledgeBase & |
knowledge, |
|
|
const std::string & |
self_prefix |
|
) |
| |
Initializes variable containers.
- Parameters
-
knowledge | the knowledge base that houses the variables |
self_prefix | the prefix of the agent's data in knowledge base |
◆ init_vars() [3/3]
void gams::variables::Self::init_vars |
( |
madara::knowledge::Variables & |
knowledge, |
|
|
const madara::knowledge::KnowledgeRecord::Integer & |
id |
|
) |
| |
Initializes variable containers.
- Parameters
-
knowledge | the variable context |
id | node identifier |
◆ operator=()
void gams::variables::Self::operator= |
( |
const Self & |
agent | ) |
|
Assignment operator.
- Parameters
-
◆ agent
Agent gams::variables::Self::agent |
the agent-specific variables
Definition at line 119 of file Self.h.
◆ id
madara::knowledge::containers::Integer gams::variables::Self::id |
the id of this agent
Definition at line 113 of file Self.h.
◆ prefix
madara::knowledge::containers::String gams::variables::Self::prefix |
the id of this agent
Definition at line 116 of file Self.h.
The documentation for this class was generated from the following file: