MADARA  3.1.8
VariableReference.cpp
Go to the documentation of this file.
4 
6  : name_ (0), record_ (0)
7 {
8 }
9 
10 
12  const VariableReference & rhs)
13  : name_ (rhs.name_), record_ (rhs.record_)
14 {
15 }
16 
18 {
19 }
20 
21 void
23  const VariableReference & rhs)
24 {
25  if (this != &rhs)
26  {
27  record_ = rhs.record_;
28  name_ = rhs.name_;
29  }
30 }
31 
32 bool
34  const VariableReference & rhs) const
35 {
36  return this->record_ == rhs.record_;
37 }
38 
39 bool
41  const VariableReference & rhs) const
42 {
43  return this->record_ != rhs.record_;
44 }
utility::ScopedArray< const char > name_
potential string value of the node (size int)
bool operator!=(const VariableReference &rhs) const
Inequality operator.
Optimized reference to a variable within the knowledge base.
void operator=(const VariableReference &input)
Assignment operator.
bool operator==(const VariableReference &rhs) const
Equality operator.
VariableReference()
Default constructor.
knowledge::KnowledgeRecord * record_
Reference to knowledge record.