Optimized reference to a variable within the knowledge base.
More...
#include <VariableReference.h>
|
| using | pair_ptr = KnowledgeMap::value_type * |
| |
Optimized reference to a variable within the knowledge base.
Definition at line 36 of file VariableReference.h.
| madara::knowledge::VariableReference::VariableReference |
( |
| ) |
|
|
default |
| madara::knowledge::VariableReference::VariableReference |
( |
pair_ptr |
entry | ) |
|
|
inline |
| void madara::knowledge::VariableReference::assign |
( |
pair_ptr |
entry | ) |
|
|
inline |
| const char * madara::knowledge::VariableReference::get_name |
( |
void |
| ) |
const |
|
inline |
Returns the name of the variable.
Returns nullptr if is_valid() is false.
- Returns
- the name of the referenced variable
Definition at line 30 of file VariableReference.inl.
| KnowledgeRecord * madara::knowledge::VariableReference::get_record_unsafe |
( |
void |
| ) |
const |
|
inline |
| bool madara::knowledge::VariableReference::is_valid |
( |
void |
| ) |
const |
|
inline |
Checks to see if the variable reference has been initialized.
- Returns
- true if valid, false otherwise
Definition at line 39 of file VariableReference.inl.
| bool madara::knowledge::VariableReference::operator!= |
( |
const VariableReference & |
rhs | ) |
const |
|
inline |
Inequality operator.
- Parameters
-
| rhs | variable reference to compare to |
Definition at line 24 of file VariableReference.inl.
| bool madara::knowledge::VariableReference::operator== |
( |
const VariableReference & |
rhs | ) |
const |
|
inline |
Equality operator.
- Parameters
-
| rhs | variable reference to compare to |
Definition at line 18 of file VariableReference.inl.
| pair_ptr madara::knowledge::VariableReference::entry_ = nullptr |
|
private |
The documentation for this class was generated from the following files: