ls1-MarDyn
ls1-MarDyn molecular dynamics code
Public Member Functions | Protected Attributes | List of all members
Expression::NodeConstant Class Reference
Inheritance diagram for Expression::NodeConstant:
Expression::Node

Public Member Functions

 NodeConstant (Tint val=0, Node *parent=NULL)
 
 NodeConstant (Tfloat val, Node *parent=NULL)
 
Tvaltype valueType () const
 
Value evaluate () const
 
Tfloat evaluateFloat () const
 
Tint evaluateInt () const
 
void write (std::ostream &ostrm) const
 
- Public Member Functions inherited from Expression::Node
 Node (Node *child1=NULL, Node *child2=NULL, Node *parent=NULL, short priority=0)
 
void setChild1 (Node *child1)
 
NodegetChild1 () const
 
void setChild2 (Node *child2)
 
NodegetChild2 () const
 
void setParent (Node *parent)
 
NodegetParent () const
 
bool isInt () const
 
bool isFloat () const
 
 operator std::string () const
 
void write () const
 
void traverse (std::list< const Node * > &nodelist, enum Etraversetype traversetype=traversetypePOSTFIX) const
 
void writeSubExpr (std::ostream &ostrm=std::cout, enum Etraversetype traversetype=traversetypePOSTFIX, char sep=' ') const
 

Protected Attributes

Value _value
 
- Protected Attributes inherited from Expression::Node
Node_children [2]
 
Node_parent
 
short _priority
 

Member Function Documentation

◆ evaluate()

Value Expression::NodeConstant::evaluate ( ) const
inlinevirtual

Implements Expression::Node.

◆ evaluateFloat()

Tfloat Expression::NodeConstant::evaluateFloat ( ) const
inlinevirtual

Reimplemented from Expression::Node.

◆ evaluateInt()

Tint Expression::NodeConstant::evaluateInt ( ) const
inlinevirtual

Reimplemented from Expression::Node.

◆ valueType()

Tvaltype Expression::NodeConstant::valueType ( ) const
inlinevirtual

Implements Expression::Node.

◆ write()

void Expression::NodeConstant::write ( std::ostream &  ostrm) const
inlinevirtual

Implements Expression::Node.


The documentation for this class was generated from the following file: