#include <FirstOrderLiteral.h>
A FOL literal is a predicate or its negation.
Definition at line 17 of file FirstOrderLiteral.h.
◆ FirstOrderLiteral() [1/2]
FirstOrderLiteral::FirstOrderLiteral |
( |
const PredicatePtr & |
predicate, |
|
|
bool |
isNegative |
|
) |
| |
◆ FirstOrderLiteral() [2/2]
knowrob::FirstOrderLiteral::FirstOrderLiteral |
( |
const PredicatePtr & |
predicate, |
|
|
bool |
isNegative |
|
) |
| |
◆ arity() [1/2]
auto knowrob::FirstOrderLiteral::arity |
( |
| ) |
const |
|
inline |
Get the arity of this predicate.
- Returns
- arity of predicate
Definition at line 49 of file FirstOrderLiteral.h.
◆ arity() [2/2]
auto knowrob::FirstOrderLiteral::arity |
( |
| ) |
const |
|
inline |
Get the arity of this predicate.
- Returns
- arity of predicate
Definition at line 49 of file FirstOrderLiteral.h.
◆ functor() [1/2]
auto& knowrob::FirstOrderLiteral::functor |
( |
| ) |
const |
|
inline |
Get the functor of this literal.
- Returns
- the functor name.
Definition at line 42 of file FirstOrderLiteral.h.
◆ functor() [2/2]
auto& knowrob::FirstOrderLiteral::functor |
( |
| ) |
const |
|
inline |
Get the functor of this literal.
- Returns
- the functor name.
Definition at line 42 of file FirstOrderLiteral.h.
◆ isNegated() [1/2]
auto knowrob::FirstOrderLiteral::isNegated |
( |
| ) |
const |
|
inline |
◆ isNegated() [2/2]
auto knowrob::FirstOrderLiteral::isNegated |
( |
| ) |
const |
|
inline |
◆ numVariables() [1/2]
virtual uint32_t knowrob::FirstOrderLiteral::numVariables |
( |
| ) |
const |
|
inlinevirtual |
◆ numVariables() [2/2]
virtual uint32_t knowrob::FirstOrderLiteral::numVariables |
( |
| ) |
const |
|
inlinevirtual |
◆ predicate() [1/2]
const auto& knowrob::FirstOrderLiteral::predicate |
( |
| ) |
const |
|
inline |
◆ predicate() [2/2]
const auto& knowrob::FirstOrderLiteral::predicate |
( |
| ) |
const |
|
inline |
◆ setIsNegated() [1/2]
void knowrob::FirstOrderLiteral::setIsNegated |
( |
bool |
isNegated | ) |
|
|
inline |
Set the negated flag of this literal.
- Parameters
-
isNegated | true indicates the literal is negated. |
Definition at line 35 of file FirstOrderLiteral.h.
◆ setIsNegated() [2/2]
void knowrob::FirstOrderLiteral::setIsNegated |
( |
bool |
isNegated | ) |
|
|
inline |
Set the negated flag of this literal.
- Parameters
-
isNegated | true indicates the literal is negated. |
Definition at line 35 of file FirstOrderLiteral.h.
◆ write() [1/2]
void FirstOrderLiteral::write |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
◆ write() [2/2]
void knowrob::FirstOrderLiteral::write |
( |
std::ostream & |
os | ) |
const |
|
overridevirtual |
Print this object to a stream.
- Parameters
-
os | the stream to print to. |
Implements knowrob::Printable.
◆ isNegated_
bool knowrob::FirstOrderLiteral::isNegated_ |
|
protected |
◆ predicate_
The documentation for this class was generated from the following files: