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


Public Member Functions | |
| NumericTemplate (T1 numericForm) | |
| NumericTemplate (std::string_view stringForm) | |
| ~NumericTemplate () override=default | |
| T1 | operator() () const |
| T1 | numericForm () const |
| double | asDouble () const override |
| float | asFloat () const override |
| int | asInteger () const override |
| long | asLong () const override |
| short | asShort () const override |
| unsigned int | asUnsignedInteger () const override |
| unsigned long | asUnsignedLong () const override |
| unsigned short | asUnsignedShort () const override |
| bool | asBoolean () const override |
| std::string_view | stringForm () const override |
| bool | isSameNumeric (const Numeric &other) const override |
| void | write (std::ostream &os) const override |
| NumericTemplate (T1 numericForm) | |
| NumericTemplate (std::string_view stringForm) | |
| ~NumericTemplate () override=default | |
| T1 | operator() () const |
| T1 | numericForm () const |
| double | asDouble () const override |
| float | asFloat () const override |
| int | asInteger () const override |
| long | asLong () const override |
| short | asShort () const override |
| unsigned int | asUnsignedInteger () const override |
| unsigned long | asUnsignedLong () const override |
| unsigned short | asUnsignedShort () const override |
| bool | asBoolean () const override |
| std::string_view | stringForm () const override |
| bool | isSameNumeric (const Numeric &other) const override |
| void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Numeric | |
| Numeric (XSDType xsdType) | |
| ~Numeric () override=default | |
| bool | isFloatingNumber () const |
| Numeric (XSDType xsdType) | |
| ~Numeric () override=default | |
| bool | isFloatingNumber () const |
Public Member Functions inherited from knowrob::XSDAtomic | |
| XSDAtomic (XSDType xsdType) | |
| std::string_view | xsdTypeIRI () const |
| XSDType | xsdType () const |
| XSDAtomic (XSDType xsdType) | |
| std::string_view | xsdTypeIRI () const |
| XSDType | xsdType () const |
Public Member Functions inherited from knowrob::RDFNode | |
| RDFNode (RDFNodeType rdfNodeType) | |
| auto | rdfNodeType () const |
| RDFNode (RDFNodeType rdfNodeType) | |
| auto | rdfNodeType () const |
Public Member Functions inherited from knowrob::Atomic | |
| Atomic (AtomicType atomicType) | |
| ~Atomic () override=default | |
| bool | isSameAtomic (const Atomic &other) const |
| AtomicType | atomicType () const |
| size_t | hashOfAtomic () const |
| const std::set< std::string_view > & | variables () const final |
| Atomic (AtomicType atomicType) | |
| ~Atomic () override=default | |
| bool | isSameAtomic (const Atomic &other) const |
| AtomicType | atomicType () const |
| size_t | hashOfAtomic () const |
| const std::set< std::string_view > & | variables () const final |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from knowrob::Numeric | |
| static std::shared_ptr< Numeric > | trueAtom () |
| static std::shared_ptr< Numeric > | falseAtom () |
| static std::shared_ptr< Numeric > | trueAtom () |
| static std::shared_ptr< Numeric > | falseAtom () |
Static Public Member Functions inherited from knowrob::XSDAtomic | |
| static std::shared_ptr< XSDAtomic > | create (std::string_view lexicalForm, std::string_view xsdTypeIRI) |
| static std::shared_ptr< XSDAtomic > | create (std::string_view lexicalForm, std::string_view xsdTypeIRI) |
Static Public Member Functions inherited from knowrob::Atomic | |
| static std::shared_ptr< Atomic > | makeTripleValue (const Triple &triple) |
| static std::shared_ptr< Atomic > | makeTripleValue (const Triple &triple) |
Protected Attributes inherited from knowrob::XSDAtomic | |
| XSDType | xsdType_ |
Protected Attributes inherited from knowrob::RDFNode | |
| const RDFNodeType | rdfNodeType_ |
Protected Attributes inherited from knowrob::Atomic | |
| const AtomicType | atomicType_ |
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 template class for numeric terms which stores a numeric of type T1, and also provides access to string representation of the numeric.
| T1 | the type of the numeric |
| T2 | the XSD type of the numeric |
|
inlineexplicit |
|
inlineexplicit |
| stringForm | the string form of the term |
Definition at line 108 of file Numeric.h.
|
overridedefault |
|
inlineexplicit |
|
inlineexplicit |
|
overridedefault |
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 153 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 153 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 129 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 129 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 132 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 132 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 135 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 135 of file Numeric.h.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 141 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 141 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 144 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 144 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 147 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 147 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 150 of file Numeric.h.
|
inlineoverridevirtual |
Implements knowrob::Numeric.
Definition at line 150 of file Numeric.h.
|
inlineoverridevirtual |
| other | another numeric |
Implements knowrob::Numeric.
Definition at line 166 of file Numeric.h.
|
inlineoverridevirtual |
| other | another numeric |
Implements knowrob::Numeric.
Definition at line 166 of file Numeric.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Get the lexical form of this atomic term.
Implements knowrob::Atomic.
|
inlineoverridevirtual |
Get the lexical form of this atomic term.
Implements knowrob::Atomic.
|
inlineoverridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Reimplemented from knowrob::Atomic.
Definition at line 175 of file Numeric.h.
|
inlineoverridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Reimplemented from knowrob::Atomic.
Definition at line 175 of file Numeric.h.