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

Access argument of a subroutine. More...

#include <SubroutineArgument.h>

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

Public Member Functions

SubroutineArgumentclone () const override
 Create a clone (i.e. More...
 
size_t getArgument () const
 Get argument. More...
 
 SubroutineArgument (size_t number)
 
- 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 size_t number
 Argument number. More...
 

Detailed Description

Access argument of a subroutine.

Arguments are number from zero 0 to n-1 where n is the number of arguments of the subroutine.

Definition at line 40 of file SubroutineArgument.h.

Constructor & Destructor Documentation

◆ SubroutineArgument()

souffle::ram::SubroutineArgument::SubroutineArgument ( size_t  number)
inline

Definition at line 42 of file SubroutineArgument.h.

43 {

References number.

Member Function Documentation

◆ clone()

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

Create a clone (i.e.

deep copy) of this node

Implements souffle::ram::Expression.

Definition at line 49 of file SubroutineArgument.h.

52  {

◆ equal()

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

◆ getArgument()

size_t souffle::ram::SubroutineArgument::getArgument ( ) const
inline

Get argument.

Definition at line 45 of file SubroutineArgument.h.

47  :
48  void print(std::ostream& os) const override {

◆ print()

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

Print RAM node.

Implements souffle::ram::Node.

Definition at line 54 of file SubroutineArgument.h.

Field Documentation

◆ number

const size_t souffle::ram::SubroutineArgument::number
protected

Argument number.

Definition at line 64 of file SubroutineArgument.h.

Referenced by SubroutineArgument().


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