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

Emptiness check for a relation. More...

#include <EmptinessCheck.h>

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

Public Member Functions

EmptinessCheckclone () const override
 Create a clone (i.e. More...
 
 EmptinessCheck (std::string rel)
 
const std::string & getRelation () const
 Get relation. 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...
 
void print (std::ostream &os) const override
 Print RAM node. More...
 

Protected Attributes

const std::string relation
 Relation. More...
 

Detailed Description

Emptiness check for a relation.

Evaluates to true if the given relation is the empty set

For example:

(B = ∅)

Definition at line 53 of file EmptinessCheck.h.

Constructor & Destructor Documentation

◆ EmptinessCheck()

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

Definition at line 55 of file EmptinessCheck.h.

55 {

References relation.

Member Function Documentation

◆ clone()

EmptinessCheck* souffle::ram::EmptinessCheck::clone ( ) const
inlineoverridevirtual

Create a clone (i.e.

deep copy) of this node

Implements souffle::ram::Condition.

Definition at line 62 of file EmptinessCheck.h.

64  {

◆ equal()

bool souffle::ram::EmptinessCheck::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 71 of file EmptinessCheck.h.

◆ getRelation()

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

Get relation.

Definition at line 58 of file EmptinessCheck.h.

59  :
60  void print(std::ostream& os) const override {

References relation.

◆ print()

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

Print RAM node.

Implements souffle::ram::Node.

Definition at line 67 of file EmptinessCheck.h.

Field Documentation

◆ relation

const std::string souffle::ram::EmptinessCheck::relation
protected

Relation.

Definition at line 77 of file EmptinessCheck.h.

Referenced by EmptinessCheck(), and getRelation().


The documentation for this class was generated from the following file:
souffle::ram::EmptinessCheck::print
void print(std::ostream &os) const override
Print RAM node.
Definition: EmptinessCheck.h:67