Skip to content

SgCombinedTreeTraversal

Synopsis

Declared in <src/midend/astProcessing/AstCombinedProcessing.h>

template<
    class InheritedAttributeType,
    class SynthesizedAttributeType>
class SgCombinedTreeTraversal
    : public SgTreeTraversal<std::vector<InheritedAttributeType>*, std::vector<SynthesizedAttributeType>*>

Base Classes

Name Description
SgTreeTraversal<std::vector<InheritedAttributeType>, std::vector<SynthesizedAttributeType>>

Type Aliases

Name
InheritedAttributeTypeList
Superclass
SynthesizedAttributeTypeList
SynthesizedAttributesList
TraversalPtr
TraversalPtrList
TraversalType

Member Functions

Name Description
SgCombinedTreeTraversal
SgCombinedTreeTraversal(); [constructor]
Constructors
addTraversal
void addTraversal(TraversalPtr t);
simple function for adding a traversal to the internal list
get_traversalPtrListRef
SgCombinedTreeTraversal<I, S>::TraversalPtrList& get_traversalPtrListRef();
function for obtaining a reference to the internal list of traversals, you can use this for any container operations you like (deleting elements etc.)

Protected Member Functions

Name
atTraversalEnd
virtual void atTraversalEnd(); [virtual]
atTraversalStart
virtual void atTraversalStart(); [virtual]
defaultSynthesizedAttribute
virtual SgCombinedTreeTraversal<I, S>::SynthesizedAttributeTypeList* defaultSynthesizedAttribute(InheritedAttributeTypeList* inheritedValues); [virtual]
evaluateInheritedAttribute
virtual SgCombinedTreeTraversal<I, S>::InheritedAttributeTypeList* evaluateInheritedAttribute( SgNode* astNode, InheritedAttributeTypeList* inheritedValues); [virtual]
evaluateSynthesizedAttribute
virtual SgCombinedTreeTraversal<I, S>::SynthesizedAttributeTypeList* evaluateSynthesizedAttribute( SgNode* astNode, InheritedAttributeTypeList* inheritedValues, SynthesizedAttributesList synthesizedAttributes); [virtual]

Protected Data Members

Name
traversals

Private Data Members

Name
numberOfTraversals
tBegin
tEnd

Created with MrDocs