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

Represents a unsigned constant. More...

#include <UnsignedConstant.h>

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

Public Member Functions

UnsignedConstantclone () const override
 Create clone. More...
 
RamUnsigned getValue () const
 Get value of the constant. More...
 
 UnsignedConstant (RamUnsigned val)
 
- Public Member Functions inherited from souffle::ram::Constant
RamDomain getConstant () const
 Get constant. 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

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

Additional Inherited Members

- Protected Attributes inherited from souffle::ram::Constant
const RamDomain constant
 Constant value. More...
 

Detailed Description

Represents a unsigned constant.

For example:

unsigned(5)

Definition at line 40 of file UnsignedConstant.h.

Constructor & Destructor Documentation

◆ UnsignedConstant()

souffle::ram::UnsignedConstant::UnsignedConstant ( RamUnsigned  val)
inlineexplicit

Definition at line 42 of file UnsignedConstant.h.

44 {

Member Function Documentation

◆ clone()

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

Create clone.

Implements souffle::ram::Expression.

Definition at line 50 of file UnsignedConstant.h.

◆ getValue()

RamUnsigned souffle::ram::UnsignedConstant::getValue ( ) const
inline

Get value of the constant.

Definition at line 45 of file UnsignedConstant.h.

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

◆ print()

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

Print RAM node.

Implements souffle::ram::Node.

Definition at line 55 of file UnsignedConstant.h.


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