knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Atomic.h>
Public Member Functions | |
Atomic (AtomicType atomicType) | |
~Atomic () override=default | |
bool | isSameAtomic (const Atomic &other) const |
AtomicType | atomicType () const |
size_t | hashOfAtomic () const |
virtual std::string_view | stringForm () const =0 |
const std::set< std::string_view > & | variables () const final |
void | write (std::ostream &os) const override |
Atomic (AtomicType atomicType) | |
~Atomic () override=default | |
bool | isSameAtomic (const Atomic &other) const |
AtomicType | atomicType () const |
size_t | hashOfAtomic () const |
virtual std::string_view | stringForm () const =0 |
const std::set< std::string_view > & | variables () const final |
void | write (std::ostream &os) const override |
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 |
Static Public Member Functions | |
static std::shared_ptr< Atomic > | makeTripleValue (const Triple &triple) |
static std::shared_ptr< Atomic > | makeTripleValue (const Triple &triple) |
Protected Attributes | |
const AtomicType | atomicType_ |
Protected Attributes inherited from knowrob::Term | |
const TermType | termType_ |
bool | isBlank_ = false |
bool | isIRI_ = false |
Additional Inherited Members | |
Static Protected Attributes inherited from knowrob::Term | |
static const std::set< std::string_view > | noVariables_ = {} |
|
inlineexplicit |
|
overridedefault |
|
inlineexplicit |
|
overridedefault |
|
inline |
|
inline |
size_t Atomic::hashOfAtomic | ( | ) | const |
Definition at line 62 of file Atomic.cpp.
size_t knowrob::Atomic::hashOfAtomic | ( | ) | const |
bool Atomic::isSameAtomic | ( | const Atomic & | other | ) | const |
other | another atomic |
Definition at line 16 of file Atomic.cpp.
bool knowrob::Atomic::isSameAtomic | ( | const Atomic & | other | ) | const |
other | another atomic |
Create an atomic term from a triple value.
triple | the triple |
Definition at line 31 of file Atomic.cpp.
Create an atomic term from a triple value.
triple | the triple |
|
pure virtual |
Get the lexical form of this atomic term.
Implemented in knowrob::StringTemplate< StrType >, knowrob::NumericTemplate< T1, T2 >, knowrob::StringTemplate< StrType >, knowrob::NumericTemplate< T1, T2 >, knowrob::Atom, and knowrob::Atom.
|
pure virtual |
Get the lexical form of this atomic term.
Implemented in knowrob::StringTemplate< StrType >, knowrob::NumericTemplate< T1, T2 >, knowrob::StringTemplate< StrType >, knowrob::NumericTemplate< T1, T2 >, knowrob::Atom, and knowrob::Atom.
|
inlinefinalvirtual |
Implements knowrob::Term.
Definition at line 69 of file Atomic.h.
|
inlinefinalvirtual |
Implements knowrob::Term.
Definition at line 69 of file Atomic.h.
|
inlineoverridevirtual |
Print this object to a stream.
os | the stream to print to. |
Implements knowrob::Printable.
Reimplemented in knowrob::StringTemplate< StrType >, knowrob::StringBase, knowrob::NumericTemplate< T1, T2 >, knowrob::IRIAtom, knowrob::Atom, knowrob::StringTemplate< StrType >, knowrob::StringBase, knowrob::NumericTemplate< T1, T2 >, and knowrob::IRIAtom.
Definition at line 72 of file Atomic.h.
|
inlineoverridevirtual |
Print this object to a stream.
os | the stream to print to. |
Implements knowrob::Printable.
Reimplemented in knowrob::StringTemplate< StrType >, knowrob::StringBase, knowrob::NumericTemplate< T1, T2 >, and knowrob::IRIAtom.
Definition at line 72 of file Atomic.h.
|
protected |