souffle
2.0.2-371-g6315b36
|
Negation of an atom negated atom. More...
#include <Negation.h>
Public Member Functions | |
void | apply (const NodeMapper &map) override |
Apply the mapper to all child nodes. More... | |
Negation * | clone () const override |
Create a clone (i.e. More... | |
Atom * | getAtom () const |
Get negated atom. More... | |
std::vector< const Node * > | getChildNodes () const override |
Obtain a list of all embedded AST child nodes. More... | |
Negation (Own< Atom > atom, SrcLocation loc={}) | |
Public Member Functions inherited from souffle::ast::Literal | |
Node (SrcLocation loc={}) | |
Public Member Functions inherited from souffle::ast::Node | |
std::string | extloc () const |
Return source location of the syntactic element. More... | |
const SrcLocation & | getSrcLoc () const |
Return source location of the Node. More... | |
Node (SrcLocation loc={}) | |
bool | operator!= (const Node &other) const |
Inequality check for two AST nodes. More... | |
bool | operator== (const Node &other) const |
Equivalence check for two AST nodes. More... | |
void | setSrcLoc (SrcLocation l) |
Set source location for the Node. More... | |
virtual | ~Node ()=default |
Protected Member Functions | |
bool | equal (const Node &node) const override |
Abstract equality check for two AST nodes. More... | |
void | print (std::ostream &os) const override |
Output to a given output stream. More... | |
Protected Attributes | |
Own< Atom > | atom |
Negated atom. More... | |
Negation of an atom negated atom.
Example: !parent(x,y).
A negated atom can only occur in the body of a clause.
Definition at line 50 of file Negation.h.
|
inline |
Definition at line 52 of file Negation.h.
References atom, souffle::clone(), and souffle::ast::Node::getSrcLoc().
|
inlineoverridevirtual |
Apply the mapper to all child nodes.
Reimplemented from souffle::ast::Node.
Definition at line 63 of file Negation.h.
|
inlineoverridevirtual |
Create a clone (i.e.
deep copy) of this node
Implements souffle::ast::Literal.
Reimplemented in souffle::ast::ProvenanceNegation.
Definition at line 59 of file Negation.h.
|
inlineoverrideprotectedvirtual |
Abstract equality check for two AST nodes.
Reimplemented from souffle::ast::Node.
Definition at line 76 of file Negation.h.
|
inline |
|
inlineoverridevirtual |
Obtain a list of all embedded AST child nodes.
Reimplemented from souffle::ast::Node.
Definition at line 67 of file Negation.h.
|
inlineoverrideprotectedvirtual |
Output to a given output stream.
Implements souffle::ast::Node.
Reimplemented in souffle::ast::ProvenanceNegation.
Definition at line 72 of file Negation.h.