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

Public Types

enum  Efunctype {
  functypeNONE =0 , functypeMarker1Arg , functypeABS , functypeFLOAT ,
  functypeINT , functypeFLOOR , functypeCEIL , functypeROUND ,
  functypeSQRT , functypeLN , functypeLB , functypeLG ,
  functypeEXP , functypeSIN , functypeCOS , functypeTAN ,
  functypeASIN , functypeACOS , functypeATAN , functypeMarker2Arg ,
  functypeMIN , functypeMAX , functypeMOD , functypePOW ,
  functypeMarkerVarSet , functypeMarkerVarSet1Arg , functypeRCL , functypeMarkerVarSet2Arg ,
  functypeSTO
}
 

Public Member Functions

 NodeFunction (Efunctype func, Node *child1, Node *child0=NULL, Node *parent=NULL)
 
Tvaltype valueType () const
 
Value evaluate () 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
 
virtual Tfloat evaluateFloat () const
 
virtual Tint evaluateInt () 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
 

Static Public Member Functions

static Efunctype functype (const std::string &name)
 

Protected Attributes

enum Efunctype _functype
 
- Protected Attributes inherited from Expression::Node
Node_children [2]
 
Node_parent
 
short _priority
 

Member Function Documentation

◆ evaluate()

Expression::Value Expression::NodeFunction::evaluate ( ) const
virtual

Implements Expression::Node.

◆ valueType()

Expression::Tvaltype Expression::NodeFunction::valueType ( ) const
virtual

Implements Expression::Node.

◆ write()

void Expression::NodeFunction::write ( std::ostream &  ostrm) const
virtual

Implements Expression::Node.


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