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


Public Member Functions | |
| ListTerm (const std::vector< TermPtr > &elements) | |
| bool | isNIL () const |
| auto & | elements () const |
| auto | begin () |
| auto | end () |
| void | write (std::ostream &os) const override |
| ListTerm (const std::vector< TermPtr > &elements) | |
| bool | isNIL () const |
| auto & | elements () const |
| auto | begin () |
| auto | end () |
| void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Function | |
| 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 |
| 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 |
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 const AtomPtr & | listFunctor () |
| static std::shared_ptr< ListTerm > | nil () |
| static const AtomPtr & | listFunctor () |
| static std::shared_ptr< ListTerm > | nil () |
Additional Inherited Members | |
Protected Member Functions inherited from knowrob::Function | |
| std::set< std::string_view > | getVariables1 () const |
| std::set< std::string_view > | getVariables1 () const |
Protected Attributes inherited from knowrob::Function | |
| 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 |
Static Protected Attributes inherited from knowrob::Term | |
| static const std::set< std::string_view > | noVariables_ = {} |
A Function representing a list of terms, the functor '[]' is used. The empty list is a special constant NIL represented as null-ary '[]'.
Definition at line 19 of file ListTerm.h.
|
explicit |
Definition at line 13 of file ListTerm.cpp.
|
explicit |
|
inline |
|
inline |
|
inline |
Get the elements of this list.
Definition at line 39 of file ListTerm.h.
|
inline |
Get the elements of this list.
Definition at line 39 of file ListTerm.h.
|
inline |
Definition at line 49 of file ListTerm.h.
|
inline |
Definition at line 49 of file ListTerm.h.
| bool ListTerm::isNIL | ( | ) | const |
Definition at line 28 of file ListTerm.cpp.
| bool knowrob::ListTerm::isNIL | ( | ) | const |
|
static |
Definition at line 17 of file ListTerm.cpp.
|
static |
|
static |
Definition at line 22 of file ListTerm.cpp.
|
static |
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Reimplemented from knowrob::Function.
Definition at line 32 of file ListTerm.cpp.
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Reimplemented from knowrob::Function.