knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Term.h>
Public Member Functions | |
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 |
virtual const std::set< std::string_view > & | variables () const =0 |
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 |
virtual const std::set< std::string_view > & | variables () const =0 |
Public Member Functions inherited from knowrob::Printable | |
virtual | ~Printable ()=default |
virtual void | write (std::ostream &os) const =0 |
virtual std::string | format () const |
virtual | ~Printable ()=default |
virtual void | write (std::ostream &os) const =0 |
virtual std::string | format () const |
Protected Attributes | |
const TermType | termType_ |
bool | isBlank_ = false |
bool | isIRI_ = false |
Static Protected Attributes | |
static const std::set< std::string_view > | noVariables_ = {} |
Terms are used as components of formulas and are recursively constructed over the set of constants, variables, and function symbols.
|
overridedefault |
|
inlineexplicit |
|
overridedefault |
size_t Term::hash | ( | ) | const |
Definition at line 38 of file Term.cpp.
size_t knowrob::Term::hash | ( | ) | const |
bool Term::isAtom | ( | ) | const |
bool knowrob::Term::isAtom | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool Term::isFunction | ( | ) | const |
bool knowrob::Term::isFunction | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool Term::isNumeric | ( | ) | const |
bool knowrob::Term::isNumeric | ( | ) | const |
bool Term::isString | ( | ) | const |
bool knowrob::Term::isString | ( | ) | const |
bool Term::isVariable | ( | ) | const |
bool knowrob::Term::isVariable | ( | ) | const |
|
inline |
|
inline |
bool Term::operator== | ( | const Term & | other | ) | const |
bool knowrob::Term::operator== | ( | const Term & | other | ) | const |
other | another term |
|
inline |
|
inline |
|
pure virtual |
Implemented in knowrob::Variable, knowrob::Function, knowrob::Variable, knowrob::Function, knowrob::Atomic, and knowrob::Atomic.
|
pure virtual |
Implemented in knowrob::Variable, knowrob::Function, knowrob::Variable, knowrob::Function, knowrob::Atomic, and knowrob::Atomic.
|
staticprotected |