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


Public Member Functions | |
| Function (AtomPtr functor, const std::vector< TermPtr > &arguments) | |
| Function (std::string_view functor, const std::vector< TermPtr > &arguments) | |
| bool | isSameFunction (const Function &other) const |
| auto & | functor () const |
| auto & | arguments () const |
| auto | arity () const |
| size_t | hashOfFunction () const |
| const std::set< std::string_view > & | variables () const override |
| void | write (std::ostream &os) const override |
| Function (AtomPtr functor, const std::vector< TermPtr > &arguments) | |
| Function (std::string_view functor, const std::vector< TermPtr > &arguments) | |
| bool | isSameFunction (const Function &other) const |
| auto & | functor () const |
| auto & | arguments () const |
| auto | arity () const |
| size_t | hashOfFunction () const |
| const std::set< std::string_view > & | variables () const override |
| 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 |
Protected Member Functions | |
| std::set< std::string_view > | getVariables1 () const |
| std::set< std::string_view > | getVariables1 () const |
Protected Attributes | |
| const std::shared_ptr< Atom > | functor_ |
| const std::vector< TermPtr > | arguments_ |
| const std::set< std::string_view > | variables_ |
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_ = {} |
A function term is a compound term with a functor and a list of arguments.
Definition at line 17 of file Function.h.
Constructs a function term from a functor and a list of arguments.
| functor | the functor |
| arguments | the arguments |
Definition at line 13 of file Function.cpp.
| Function::Function | ( | std::string_view | functor, |
| const std::vector< TermPtr > & | arguments | ||
| ) |
Constructs a function term from a functor and a list of arguments.
| functor | the functor |
| arguments | the arguments |
Definition at line 20 of file Function.cpp.
Constructs a function term from a functor and a list of arguments.
| functor | the functor |
| arguments | the arguments |
| knowrob::Function::Function | ( | std::string_view | functor, |
| const std::vector< TermPtr > & | arguments | ||
| ) |
Constructs a function term from a functor and a list of arguments.
| functor | the functor |
| arguments | the arguments |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 24 of file Function.cpp.
|
protected |
| size_t Function::hashOfFunction | ( | ) | const |
Definition at line 44 of file Function.cpp.
| size_t knowrob::Function::hashOfFunction | ( | ) | const |
| bool Function::isSameFunction | ( | const Function & | other | ) | const |
| other | another function |
Definition at line 32 of file Function.cpp.
| bool knowrob::Function::isSameFunction | ( | const Function & | other | ) | const |
| other | another function |
|
inlineoverridevirtual |
Implements knowrob::Term.
Definition at line 60 of file Function.h.
|
inlineoverridevirtual |
Implements knowrob::Term.
Definition at line 60 of file Function.h.
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Implements knowrob::Printable.
Reimplemented in knowrob::ListTerm, knowrob::GraphBuiltin, and knowrob::ListTerm.
Definition at line 53 of file Function.cpp.
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Implements knowrob::Printable.
Reimplemented in knowrob::ListTerm.
|
protected |
Definition at line 67 of file Function.h.
|
protected |
Definition at line 66 of file Function.h.
|
protected |
Definition at line 68 of file Function.h.