souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
42 class Negation :
public Condition {
45 assert(
operand !=
nullptr &&
"operand of negation is a null-pointer");
66 void print(std::ostream& os)
const override {
67 os <<
"(NOT " << *
operand <<
")";
70 bool equal(
const Node& node)
const override {
71 const auto& other =
static_cast<const Negation&
>(node);
Negation * clone() const override
Create a clone (i.e.
Negation(Own< Condition > op)
auto map(const std::vector< A > &xs, F &&f)
Applies a function to each element of a vector and returns the results.
Abstract class for conditions and boolean values in RAM.
std::vector< const Node * > getChildNodes() const override
Obtain list of all embedded child nodes.
void print(std::ostream &os) const override
Print RAM node.
Node is a superclass for all RAM IR classes.
auto clone(const std::vector< A * > &xs)
An abstract class for manipulating RAM Nodes by substitution.
bool equal(const Node &node) const override
Equality check for two RAM nodes.
void apply(const NodeMapper &map) override
Apply the mapper to all child nodes.
bool equal_ptr(const T *a, const T *b)
Compares two values referenced by a pointer where the case where both pointers are null is also consi...
Negates a given condition.
Own< Condition > operand
Operand.
const Condition & getOperand() const
Get operand of negation.