knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <CompoundFormula.h>
Public Member Functions | |
CompoundFormula (FormulaType type, const std::vector< FormulaPtr > &formulae) | |
virtual | ~CompoundFormula ()=default |
const std::vector< FormulaPtr > & | formulae () const |
virtual const char * | operator_symbol () const =0 |
void | write (std::ostream &os) const override |
CompoundFormula (FormulaType type, const std::vector< FormulaPtr > &formulae) | |
virtual | ~CompoundFormula ()=default |
const std::vector< FormulaPtr > & | formulae () const |
virtual const char * | operator_symbol () const =0 |
void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Formula | |
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 std::string | format () const |
virtual | ~Printable ()=default |
virtual std::string | format () const |
Protected Member Functions | |
bool | isGround1 () const |
bool | isGround1 () const |
Protected Member Functions inherited from knowrob::Formula | |
virtual bool | isEqual (const Formula &other) const =0 |
virtual bool | isEqual (const Formula &other) const =0 |
Protected Attributes | |
const std::vector< FormulaPtr > | formulae_ |
Protected Attributes inherited from knowrob::Formula | |
const FormulaType | type_ |
bool | isGround_ = true |
A formula with sub-formulas linked via logical connectives.
Definition at line 18 of file CompoundFormula.h.
knowrob::CompoundFormula::CompoundFormula | ( | FormulaType | type, |
const std::vector< FormulaPtr > & | formulae | ||
) |
type | the type of the formula. |
formulae | list of connected formulae. |
|
virtualdefault |
knowrob::CompoundFormula::CompoundFormula | ( | FormulaType | type, |
const std::vector< FormulaPtr > & | formulae | ||
) |
type | the type of the formula. |
formulae | list of connected formulae. |
|
virtualdefault |
|
inline |
Definition at line 31 of file CompoundFormula.h.
|
inline |
Definition at line 31 of file CompoundFormula.h.
|
protected |
Definition at line 19 of file CompoundFormula.cpp.
|
protected |
|
pure virtual |
Implemented in knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, knowrob::Conjunction, knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, and knowrob::Conjunction.
|
pure virtual |
Implemented in knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, knowrob::Conjunction, knowrob::Negation, knowrob::ModalFormula, knowrob::Implication, knowrob::Disjunction, and knowrob::Conjunction.
|
overridevirtual |
Print this object to a stream.
os | the stream to print to. |
Implements knowrob::Printable.
Reimplemented in knowrob::ModalFormula, and knowrob::ModalFormula.
Definition at line 24 of file CompoundFormula.cpp.
|
overridevirtual |
Print this object to a stream.
os | the stream to print to. |
Implements knowrob::Printable.
Reimplemented in knowrob::ModalFormula.
|
protected |
Definition at line 42 of file CompoundFormula.h.