ROSE 0.11.145.192
Public Member Functions | List of all members
SimpleExpressionEvaluator Class Reference

Description

Definition at line 24345 of file sageInterface.C.

Inheritance diagram for SimpleExpressionEvaluator:
Inheritance graph
[legend]
Collaboration diagram for SimpleExpressionEvaluator:
Collaboration graph
[legend]

Public Member Functions

struct SageInterface::const_int_expr_t getValueExpressionValue (SgValueExp *valExp)
 
struct SageInterface::const_int_expr_t evaluateVariableReference (SgVarRefExp *vRef)
 
struct SageInterface::const_int_expr_t evaluateSynthesizedAttribute (SgNode *node, SynthesizedAttributesList synList)
 pure virtual function which must be implemented to compute the synthesized attribute at a node.
 
- Public Member Functions inherited from AstBottomUpProcessing< struct SageInterface::const_int_expr_t >
struct SageInterface::const_int_expr_t traverse (SgNode *node)
 evaluates attributes on the entire AST
 
struct SageInterface::const_int_expr_t traverseWithinFile (SgNode *node)
 evaluates attributes only at nodes which represent the same file as where the evaluation was started
 
void traverseInputFiles (SgProject *projectNode)
 evaluates attributes only at nodes which represent files which were specified on the command line (=input files).
 
- Public Member Functions inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
SynthesizedAttributeType traverse (SgNode *basenode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
SynthesizedAttributeType traverseWithinFile (SgNode *basenode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, InheritedAttributeType inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Additional Inherited Members

- Public Types inherited from AstBottomUpProcessing< struct SageInterface::const_int_expr_t >
typedef SgTreeTraversal< DummyAttribute, struct SageInterface::const_int_expr_t >::SynthesizedAttributesList SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Types inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
typedef StackFrameVector< SynthesizedAttributeType > SynthesizedAttributesList
 
- Protected Types inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 
- Protected Member Functions inherited from AstBottomUpProcessing< struct SageInterface::const_int_expr_t >
virtual struct SageInterface::const_int_expr_t defaultSynthesizedAttribute ()
 Allows to provide a default value for a synthesized attribute of primitive type (e.g.
 
virtual void atTraversalStart ()
 Function called at the start of the traversal, before any node is visited; override if necessary, the default implementation is a no-op.
 
virtual void atTraversalEnd ()
 
- Protected Member Functions inherited from SgTreeTraversal< InheritedAttributeType, SynthesizedAttributeType >
virtual InheritedAttributeType evaluateInheritedAttribute (SgNode *astNode, InheritedAttributeType inheritedValue)=0
 
virtual SynthesizedAttributeType evaluateSynthesizedAttribute (SgNode *n, InheritedAttributeType in, SynthesizedAttributesList l)=0
 
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
virtual SynthesizedAttributeType defaultSynthesizedAttribute (InheritedAttributeType inh)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Constructor & Destructor Documentation

◆ SimpleExpressionEvaluator()

SimpleExpressionEvaluator::SimpleExpressionEvaluator ( )
inline

Definition at line 24347 of file sageInterface.C.

Member Function Documentation

◆ getValueExpressionValue()

struct SageInterface::const_int_expr_t SimpleExpressionEvaluator::getValueExpressionValue ( SgValueExp valExp)
inline

Definition at line 24350 of file sageInterface.C.

◆ evaluateVariableReference()

struct SageInterface::const_int_expr_t SimpleExpressionEvaluator::evaluateVariableReference ( SgVarRefExp vRef)
inline

Definition at line 24374 of file sageInterface.C.

◆ evaluateSynthesizedAttribute()

struct SageInterface::const_int_expr_t SimpleExpressionEvaluator::evaluateSynthesizedAttribute ( SgNode ,
SynthesizedAttributesList   
)
inlinevirtual

pure virtual function which must be implemented to compute the synthesized attribute at a node.

The list of synthesized attributes consists of the synthesized attributes computed at the children node of the current node. The inherited attribute value is computed by the function evaluateInheritedAttribute at the same node and simply passed to this function. Use the typedef SynthesizedAttributeList as type for the synthesized attributes list.

Implements AstBottomUpProcessing< struct SageInterface::const_int_expr_t >.

Definition at line 24401 of file sageInterface.C.


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