souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends
souffle::ram::Operation Class Referenceabstract

Abstract class for a relational algebra operation. More...

#include <Operation.h>

Inheritance diagram for souffle::ram::Operation:
Inheritance graph
Collaboration diagram for souffle::ram::Operation:
Collaboration graph

Public Member Functions

Operationclone () const override=0
 Create a clone (i.e. More...
 
- Public Member Functions inherited from souffle::ram::Node
virtual void apply (const NodeMapper &)
 Apply the mapper to all child nodes. More...
 
virtual std::vector< const Node * > getChildNodes () const
 Obtain list of all embedded child nodes. More...
 
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

void print (std::ostream &os) const override
 Print RAM node. More...
 
virtual void print (std::ostream &os, int tabpos) const =0
 Pretty print with indentation. More...
 
- Protected Member Functions inherited from souffle::ram::Node
virtual bool equal (const Node &) const
 Equality check for two RAM nodes. More...
 

Static Protected Member Functions

static void print (const Operation *operation, std::ostream &os, int tabpos)
 Pretty print jump-bed. More...
 

Friends

class Query
 

Detailed Description

Abstract class for a relational algebra operation.

Definition at line 34 of file Operation.h.

Member Function Documentation

◆ clone()

Operation* souffle::ram::Operation::clone ( ) const
overridepure virtual

◆ print() [1/3]

static void souffle::ram::Operation::print ( const Operation operation,
std::ostream &  os,
int  tabpos 
)
inlinestaticprotected

Pretty print jump-bed.

Definition at line 46 of file Operation.h.

◆ print() [2/3]

void souffle::ram::Operation::print ( std::ostream &  out) const
inlineoverrideprotectedvirtual

Print RAM node.

Implements souffle::ram::Node.

Definition at line 39 of file Operation.h.

40  {
41  operation->print(os, tabpos);

Referenced by souffle::ram::NestedOperation::apply().

◆ print() [3/3]

virtual void souffle::ram::Operation::print ( std::ostream &  os,
int  tabpos 
) const
protectedpure virtual

Friends And Related Function Documentation

◆ Query

friend class Query
friend

Definition at line 50 of file Operation.h.


The documentation for this class was generated from the following file: