souffle  2.0.2-371-g6315b36
Public Member Functions | Protected Member Functions | Protected Attributes
souffle::ram::RelationStatement Class Reference

RAM Statements with a single relation. More...

#include <RelationStatement.h>

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

Public Member Functions

const std::string & getRelation () const
 Get RAM relation. More...
 
 RelationStatement (std::string rel)
 
- Public Member Functions inherited from souffle::ram::Statement
Statementclone () 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

bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
- Protected Member Functions inherited from souffle::ram::Statement
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 Attributes

std::string relation
 Relation. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from souffle::ram::Statement
static void print (const Statement *statement, std::ostream &os, int tabpos)
 Pretty print jump-bed. More...
 

Detailed Description

RAM Statements with a single relation.

Definition at line 37 of file RelationStatement.h.

Constructor & Destructor Documentation

◆ RelationStatement()

souffle::ram::RelationStatement::RelationStatement ( std::string  rel)
inline

Definition at line 39 of file RelationStatement.h.

42 :
43  bool equal(const Node& node) const override {

Member Function Documentation

◆ equal()

bool souffle::ram::RelationStatement::equal ( const Node ) const
inlineoverrideprotectedvirtual

Equality check for two RAM nodes.

Default action is that nothing needs to be checked.

Reimplemented from souffle::ram::Node.

Definition at line 47 of file RelationStatement.h.

48  :
49  /** Relation */
50  std::string relation;

◆ getRelation()

const std::string& souffle::ram::RelationStatement::getRelation ( ) const
inline

Get RAM relation.

Definition at line 42 of file RelationStatement.h.

42  :
43  bool equal(const Node& node) const override {
44  const auto& other = static_cast<const RelationStatement&>(node);

References relation.

Referenced by souffle::interpreter::NodeGenerator::visitLogSize().

Field Documentation

◆ relation

std::string souffle::ram::RelationStatement::relation
protected

The documentation for this class was generated from the following file:
souffle::ram::RelationStatement::equal
bool equal(const Node &node) const override
Equality check for two RAM nodes.
Definition: RelationStatement.h:47
souffle::ram::RelationStatement::RelationStatement
RelationStatement(std::string rel)
Definition: RelationStatement.h:39
souffle::ram::RelationStatement::relation
std::string relation
Relation.
Definition: RelationStatement.h:54