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


Public Member Functions | |
| Formula (const FormulaType &type) | |
| virtual | ~Formula ()=default |
| bool | operator== (const Formula &other) const |
| FormulaType | type () const |
| bool | isAtomic () const |
| bool | isGround () const |
| bool | isTop () const |
| bool | isBottom () const |
| Formula (const FormulaType &type) | |
| virtual | ~Formula ()=default |
| bool | operator== (const Formula &other) const |
| FormulaType | type () const |
| bool | isAtomic () const |
| bool | isGround () const |
| bool | isTop () const |
| bool | isBottom () const |
Public Member Functions inherited from knowrob::Printable | |
| virtual | ~Printable ()=default |
| virtual void | write (std::ostream &os) const =0 |
| virtual std::string | format () const |
| virtual | ~Printable ()=default |
| virtual void | write (std::ostream &os) const =0 |
| virtual std::string | format () const |
Protected Member Functions | |
| virtual bool | isEqual (const Formula &other) const =0 |
| virtual bool | isEqual (const Formula &other) const =0 |
Protected Attributes | |
| const FormulaType | type_ |
| bool | isGround_ = true |
A propositional formula. Note that all formulas are immutable.
|
explicit |
|
virtualdefault |
|
explicit |
| type | the type of the formula. |
|
virtualdefault |
| bool Formula::isAtomic | ( | ) | const |
Is this formula free of subformulas?
Definition at line 30 of file Formula.cpp.
| bool knowrob::Formula::isAtomic | ( | ) | const |
Is this formula free of subformulas?
| bool Formula::isBottom | ( | ) | const |
| bool knowrob::Formula::isBottom | ( | ) | const |
|
protectedpure virtual |
Implemented in knowrob::Top, knowrob::Predicate, knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, knowrob::Conjunction, knowrob::Bottom, knowrob::Top, knowrob::Predicate, knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, knowrob::Conjunction, and knowrob::Bottom.
|
protectedpure virtual |
Implemented in knowrob::Top, knowrob::Predicate, knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, knowrob::Conjunction, knowrob::Bottom, knowrob::Top, knowrob::Predicate, knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, knowrob::Conjunction, and knowrob::Bottom.
|
inline |
|
inline |
| bool Formula::isTop | ( | ) | const |
| bool knowrob::Formula::isTop | ( | ) | const |
| bool Formula::operator== | ( | const Formula & | other | ) | const |
| other | another formula |
Definition at line 25 of file Formula.cpp.
| bool knowrob::Formula::operator== | ( | const Formula & | other | ) | const |
| other | another formula |
|
inline |
|
inline |
|
protected |