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

Returns the numbers of tuples in a relation. More...

#include <RelationSize.h>

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

Public Member Functions

RelationSizeclone () const override
 Create a clone (i.e. More...
 
const std::string getRelation () const
 Get relation. More...
 
 RelationSize (std::string rel)
 
- 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

std::string relation
 Relation. More...
 

Detailed Description

Returns the numbers of tuples in a relation.

For example:

size(B)

Definition at line 49 of file RelationSize.h.

Constructor & Destructor Documentation

◆ RelationSize()

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

Definition at line 51 of file RelationSize.h.

52 {

References relation.

Member Function Documentation

◆ clone()

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

Create a clone (i.e.

deep copy) of this node

Implements souffle::ram::Expression.

Definition at line 58 of file RelationSize.h.

61  {

◆ equal()

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

◆ getRelation()

const std::string souffle::ram::RelationSize::getRelation ( ) const
inline

Get relation.

Definition at line 54 of file RelationSize.h.

56  :
57  void print(std::ostream& os) const override {

◆ print()

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

Print RAM node.

Implements souffle::ram::Node.

Definition at line 63 of file RelationSize.h.

Field Documentation

◆ relation

std::string souffle::ram::RelationSize::relation
protected

Relation.

Definition at line 73 of file RelationSize.h.

Referenced by RelationSize().


The documentation for this class was generated from the following file:
TCB_SPAN_NAMESPACE_NAME::detail::size
constexpr auto size(const C &c) -> decltype(c.size())
Definition: span.h:198
souffle::ram::RelationSize::print
void print(std::ostream &os) const override
Print RAM node.
Definition: RelationSize.h:63