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 32 of file VariableReference.h.
◆ pair_ptr
◆ VariableReference() [1/2]
madara::knowledge::VariableReference::VariableReference |
( |
| ) |
|
|
default |
◆ VariableReference() [2/2]
madara::knowledge::VariableReference::VariableReference |
( |
pair_ptr |
entry | ) |
|
|
inline |
◆ assign()
void madara::knowledge::VariableReference::assign |
( |
pair_ptr |
entry | ) |
|
|
inline |
◆ get_name()
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 27 of file VariableReference.inl.
◆ get_record_unsafe()
KnowledgeRecord * madara::knowledge::VariableReference::get_record_unsafe |
( |
void |
| ) |
const |
|
inline |
◆ is_valid()
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 36 of file VariableReference.inl.
◆ operator!=()
bool madara::knowledge::VariableReference::operator!= |
( |
const VariableReference & |
rhs | ) |
const |
|
inline |
Inequality operator.
- Parameters
-
rhs | variable reference to compare to |
Definition at line 22 of file VariableReference.inl.
◆ operator==()
bool madara::knowledge::VariableReference::operator== |
( |
const VariableReference & |
rhs | ) |
const |
|
inline |
Equality operator.
- Parameters
-
rhs | variable reference to compare to |
Definition at line 17 of file VariableReference.inl.
◆ KnowledgeBaseImpl
◆ ThreadSafeContext
◆ Variables
◆ entry_
pair_ptr madara::knowledge::VariableReference::entry_ = nullptr |
|
private |
The documentation for this class was generated from the following files: