|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Variable.h>


the name of the variable. | |
| const AtomPtr | nameAtom_ |
| const std::set< std::string_view > | variables_ |
| Variable (std::string_view name) | |
| bool | operator< (const Variable &other) const |
| bool | isSameVariable (const Variable &other) const |
| std::string_view | name () const |
| const AtomPtr & | nameAtom () const |
| const std::set< std::string_view > & | variables () const override |
| void | write (std::ostream &os) const override |
| Variable (std::string_view name) | |
| bool | operator< (const Variable &other) const |
| bool | isSameVariable (const Variable &other) const |
| std::string_view | name () const |
| const AtomPtr & | nameAtom () const |
| const std::set< std::string_view > & | variables () const override |
| void | write (std::ostream &os) const override |
Additional Inherited Members | |
Public Member Functions inherited from knowrob::Term | |
| Term (TermType termType) | |
| ~Term () override=default | |
| bool | operator== (const Term &other) const |
| bool | operator!= (const Term &other) const |
| TermType | termType () const |
| bool | isGround () const |
| bool | isAtomic () const |
| bool | isAtom () const |
| bool | isVariable () const |
| bool | isFunction () const |
| bool | isNumeric () const |
| bool | isString () const |
| bool | isIRI () const |
| bool | isBlank () const |
| size_t | hash () const |
| Term (TermType termType) | |
| ~Term () override=default | |
| bool | operator== (const Term &other) const |
| bool | operator!= (const Term &other) const |
| TermType | termType () const |
| bool | isGround () const |
| bool | isAtomic () const |
| bool | isAtom () const |
| bool | isVariable () const |
| bool | isFunction () const |
| bool | isNumeric () const |
| bool | isString () const |
| bool | isIRI () const |
| bool | isBlank () const |
| size_t | hash () const |
Public Member Functions inherited from knowrob::Printable | |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
Protected Attributes inherited from knowrob::Term | |
| const TermType | termType_ |
| bool | isBlank_ = false |
| bool | isIRI_ = false |
Static Protected Attributes inherited from knowrob::Term | |
| static const std::set< std::string_view > | noVariables_ = {} |
A variable term. A variable is identified by a name string in the scope of a formula, i.e. within a formula two variables with the same name are considered to be equal.
Definition at line 20 of file Variable.h.
|
explicit |
Definition at line 12 of file Variable.cpp.
|
explicit |
| bool Variable::isSameVariable | ( | const Variable & | other | ) | const |
| other | another variable. |
Definition at line 18 of file Variable.cpp.
| bool knowrob::Variable::isSameVariable | ( | const Variable & | other | ) | const |
| other | another variable. |
|
inline |
|
inline |
|
inline |
|
inline |
| bool Variable::operator< | ( | const Variable & | other | ) | const |
| other | another variable. |
Definition at line 22 of file Variable.cpp.
| bool knowrob::Variable::operator< | ( | const Variable & | other | ) | const |
| other | another variable. |
|
inlineoverridevirtual |
Implements knowrob::Term.
Definition at line 50 of file Variable.h.
|
inlineoverridevirtual |
Implements knowrob::Term.
Definition at line 50 of file Variable.h.
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Implements knowrob::Printable.
Definition at line 26 of file Variable.cpp.
|
overridevirtual |
|
protected |
Definition at line 56 of file Variable.h.
|
protected |
Definition at line 57 of file Variable.h.