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

Represents a signed constant. More...

#include <SignedConstant.h>

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

Public Member Functions

SignedConstantclone () const override
 Create clone. More...
 
RamDomain getValue () const
 Get value of the constant. More...
 
 SignedConstant (RamDomain 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 signed constant.

For example:

number(5)

Definition at line 40 of file SignedConstant.h.

Constructor & Destructor Documentation

◆ SignedConstant()

souffle::ram::SignedConstant::SignedConstant ( RamDomain  val)
inlineexplicit

Definition at line 42 of file SignedConstant.h.

44 {

Member Function Documentation

◆ clone()

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

Create clone.

Implements souffle::ram::Expression.

Definition at line 50 of file SignedConstant.h.

Referenced by souffle::ram::test::TEST().

◆ getValue()

RamDomain souffle::ram::SignedConstant::getValue ( ) const
inline

Get value of the constant.

Definition at line 45 of file SignedConstant.h.

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

◆ print()

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

Print RAM node.

Implements souffle::ram::Node.

Definition at line 55 of file SignedConstant.h.


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