souffle
2.0.2-371-g6315b36
|
Abstract class for operations on relations. More...
#include <RelationOperation.h>
Public Member Functions | |
RelationOperation * | clone () const override=0 |
Create a clone (i.e. More... | |
const std::string & | getRelation () const |
Get search relation. More... | |
RelationOperation (std::string rel, int ident, Own< Operation > nested, std::string profileText="") | |
Public Member Functions inherited from souffle::ram::TupleOperation | |
std::vector< const Node * > | getChildNodes () const override |
Obtain list of all embedded child nodes. More... | |
int | getTupleId () const |
Get identifier. More... | |
void | setTupleId (int id) |
Set identifier. More... | |
TupleOperation (int ident, Own< Operation > nested, std::string profileText="") | |
Public Member Functions inherited from souffle::ram::NestedOperation | |
void | apply (const NodeMapper &map) override |
Apply the mapper to all child nodes. More... | |
Operation & | getOperation () const |
Get nested operation. More... | |
const std::string & | getProfileText () const |
Get profile text. More... | |
NestedOperation (Own< Operation > nested, std::string profileText="") | |
Public Member Functions inherited from souffle::ram::Node | |
bool | operator!= (const Node &other) const |
Inequality check for two RAM nodes. More... | |
bool | operator== (const Node &other) const |
Equivalence check for two RAM nodes. More... | |
virtual void | rewrite (const Node *oldNode, Own< Node > newNode) |
Rewrite a child node. More... | |
virtual | ~Node ()=default |
Protected Member Functions | |
bool | equal (const Node &node) const override |
Equality check for two RAM nodes. More... | |
Protected Member Functions inherited from souffle::ram::TupleOperation | |
bool | equal (const Node &node) const override |
Equality check for two RAM nodes. More... | |
Protected Member Functions inherited from souffle::ram::NestedOperation | |
void | print (std::ostream &os, int tabpos) const override |
Pretty print with indentation. More... | |
Protected Member Functions inherited from souffle::ram::Operation | |
void | print (std::ostream &os) const override |
Print RAM node. More... | |
Protected Attributes | |
const std::string | relation |
Search relation. More... | |
Protected Attributes inherited from souffle::ram::TupleOperation | |
int | identifier |
Identifier for the tuple, corresponding to its position in the loop nest. More... | |
Protected Attributes inherited from souffle::ram::NestedOperation | |
Own< Operation > | nestedOperation |
Nested operation. More... | |
const std::string | profileText |
Text used by the profiler. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from souffle::ram::Operation | |
static void | print (const Operation *operation, std::ostream &os, int tabpos) |
Pretty print jump-bed. More... | |
Abstract class for operations on relations.
One such operation is a for loop
Definition at line 41 of file RelationOperation.h.
|
inline |
Definition at line 43 of file RelationOperation.h.
References relation.
|
overridepure virtual |
Create a clone (i.e.
deep copy) of this node
Implements souffle::ram::TupleOperation.
Implemented in souffle::ram::IndexOperation, souffle::ram::IndexChoice, souffle::ram::Choice, souffle::ram::Aggregate, souffle::ram::ParallelIndexChoice, souffle::ram::IndexAggregate, souffle::ram::ParallelIndexScan, souffle::ram::IndexScan, souffle::ram::ParallelAggregate, souffle::ram::ParallelIndexAggregate, souffle::ram::ParallelChoice, souffle::ram::ParallelScan, and souffle::ram::Scan.
|
inlineoverrideprotectedvirtual |
Equality check for two RAM nodes.
Default action is that nothing needs to be checked.
Reimplemented from souffle::ram::NestedOperation.
Definition at line 54 of file RelationOperation.h.
|
inline |
Get search relation.
Definition at line 49 of file RelationOperation.h.
References souffle::ram::TupleOperation::equal(), and relation.
|
protected |
Search relation.
Definition at line 60 of file RelationOperation.h.
Referenced by souffle::ram::Scan::clone(), souffle::ram::ParallelChoice::clone(), getRelation(), souffle::ram::ParallelAggregate::ParallelAggregate(), souffle::ram::ParallelChoice::ParallelChoice(), and RelationOperation().