6 #include "knowrob/formulas/Negation.h"
7 #include "knowrob/formulas/Predicate.h"
8 #include "knowrob/formulas/Top.h"
9 #include "knowrob/formulas/Bottom.h"
10 #include "knowrob/integration/python/utils.h"
19 const auto &x =
static_cast<const Negation &
>(other);
26 return ((
Negation *) phi.get())->negatedFormula();
27 }
else if (phi->isBottom()) {
29 }
else if (phi->isTop()) {
32 return std::make_shared<Negation>(phi);
41 class_<Negation, std::shared_ptr<Negation>, bases<CompoundFormula>>
42 (
"Negation", init<const FormulaPtr &>())
static const std::shared_ptr< Bottom > & get()
bool isEqual(const Formula &other) const override
const FormulaPtr & negatedFormula() const
Negation(const FormulaPtr &formula)
static const std::shared_ptr< Top > & get()
void createType< Negation >()
std::shared_ptr< Formula > FormulaPtr
FormulaPtr operator~(const FormulaPtr &phi)