#include <PredicateIndicator.h>
The indicator of a predicate defined by its functor and arity.
Definition at line 19 of file PredicateIndicator.h.
◆ PredicateIndicator() [1/4]
knowrob::PredicateIndicator::PredicateIndicator |
( |
std::string_view |
functor, |
|
|
uint32_t |
arity |
|
) |
| |
|
inline |
- Parameters
-
functor | the functor name. |
arity | thr arity of this predicate. |
Definition at line 25 of file PredicateIndicator.h.
static std::shared_ptr< knowrob::Atom > Tabled(std::string_view stringForm)
◆ PredicateIndicator() [2/4]
knowrob::PredicateIndicator::PredicateIndicator |
( |
AtomPtr |
functor, |
|
|
uint32_t |
arity |
|
) |
| |
|
inline |
- Parameters
-
functor | the functor name. |
arity | thr arity of this predicate. |
Definition at line 32 of file PredicateIndicator.h.
◆ PredicateIndicator() [3/4]
knowrob::PredicateIndicator::PredicateIndicator |
( |
std::string_view |
functor, |
|
|
uint32_t |
arity |
|
) |
| |
|
inline |
- Parameters
-
functor | the functor name. |
arity | thr arity of this predicate. |
Definition at line 25 of file PredicateIndicator.h.
◆ PredicateIndicator() [4/4]
knowrob::PredicateIndicator::PredicateIndicator |
( |
AtomPtr |
functor, |
|
|
uint32_t |
arity |
|
) |
| |
|
inline |
- Parameters
-
functor | the functor name. |
arity | thr arity of this predicate. |
Definition at line 32 of file PredicateIndicator.h.
◆ arity() [1/2]
auto knowrob::PredicateIndicator::arity |
( |
| ) |
const |
|
inline |
Get the arity of this predicate.
- Returns
- arity of predicate
Definition at line 53 of file PredicateIndicator.h.
◆ arity() [2/2]
auto knowrob::PredicateIndicator::arity |
( |
| ) |
const |
|
inline |
Get the arity of this predicate.
- Returns
- arity of predicate
Definition at line 53 of file PredicateIndicator.h.
◆ functor() [1/2]
auto& knowrob::PredicateIndicator::functor |
( |
| ) |
const |
|
inline |
Get the functor of this predicate.
- Returns
- the functor name.
Definition at line 46 of file PredicateIndicator.h.
◆ functor() [2/2]
auto& knowrob::PredicateIndicator::functor |
( |
| ) |
const |
|
inline |
Get the functor of this predicate.
- Returns
- the functor name.
Definition at line 46 of file PredicateIndicator.h.
◆ operator<() [1/2]
Definition at line 17 of file PredicateIndicator.cpp.
18 if (arity_ != other.arity_) {
19 return arity_ < other.arity_;
21 return functor_->stringForm() < other.functor_->stringForm();
◆ operator<() [2/2]
◆ operator==() [1/2]
◆ operator==() [2/2]
◆ toTerm() [1/2]
std::shared_ptr< Term > PredicateIndicator::toTerm |
( |
| ) |
const |
Convert the predicate indicator to a term of the form ‘’/'(Functor,Arity)`.
- Returns
- the indicator as a term.
Definition at line 28 of file PredicateIndicator.cpp.
29 return std::make_shared<Function>(
Function(
"/", {
31 std::make_shared<Long>(
arity())
◆ toTerm() [2/2]
std::shared_ptr<Term> knowrob::PredicateIndicator::toTerm |
( |
| ) |
const |
Convert the predicate indicator to a term of the form ‘’/'(Functor,Arity)`.
- Returns
- the indicator as a term.
◆ write() [1/2]
void PredicateIndicator::write |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
◆ write() [2/2]
void knowrob::PredicateIndicator::write |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
Print this object to a stream.
- Parameters
-
os | the stream to print to. |
Implements knowrob::Printable.
The documentation for this class was generated from the following files: