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

Represents a float constant. More...

#include <FloatConstant.h>

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

Public Member Functions

FloatConstantclone () const override
 Create clone. More...
 
 FloatConstant (RamFloat val)
 
RamFloat getValue () const
 Get value of the constant. More...
 
- 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 float constant.

For example:

float(3.3)

Definition at line 40 of file FloatConstant.h.

Constructor & Destructor Documentation

◆ FloatConstant()

souffle::ram::FloatConstant::FloatConstant ( RamFloat  val)
inlineexplicit

Definition at line 42 of file FloatConstant.h.

44 {

Member Function Documentation

◆ clone()

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

Create clone.

Implements souffle::ram::Expression.

Definition at line 50 of file FloatConstant.h.

◆ getValue()

RamFloat souffle::ram::FloatConstant::getValue ( ) const
inline

Get value of the constant.

Definition at line 45 of file FloatConstant.h.

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

◆ print()

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

Print RAM node.

Implements souffle::ram::Node.

Definition at line 55 of file FloatConstant.h.


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