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

Represents a Ram Constant. More...

#include <Constant.h>

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

Public Member Functions

RamDomain getConstant () const
 Get constant. More...
 
- Public Member Functions inherited from souffle::ram::Expression
Expressionclone () 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

 Constant (RamDomain constant)
 
bool equal (const Node &node) const override
 Equality check for two RAM nodes. More...
 
- Protected Member Functions inherited from souffle::ram::Node
virtual void print (std::ostream &out=std::cout) const =0
 Print RAM node. More...
 

Protected Attributes

const RamDomain constant
 Constant value. More...
 

Detailed Description

Represents a Ram Constant.

Definition at line 36 of file Constant.h.

Constructor & Destructor Documentation

◆ Constant()

souffle::ram::Constant::Constant ( RamDomain  constant)
inlineexplicitprotected

Definition at line 44 of file Constant.h.

Member Function Documentation

◆ equal()

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

◆ getConstant()

RamDomain souffle::ram::Constant::getConstant ( ) const
inline

Get constant.

Definition at line 39 of file Constant.h.

40  {
41  const auto& other = static_cast<const Constant&>(node);

References constant.

Field Documentation

◆ constant

const RamDomain souffle::ram::Constant::constant
protected

Constant value.

Definition at line 52 of file Constant.h.

Referenced by getConstant().


The documentation for this class was generated from the following file:
souffle::ram::Constant::Constant
Constant(RamDomain constant)
Definition: Constant.h:44