ROSE 0.11.145.168
Public Member Functions | Public Attributes | List of all members
sg::TraversalClass< GVisitor > Struct Template Reference

Description

template<class GVisitor>
struct sg::TraversalClass< GVisitor >

Definition at line 1641 of file sageGeneric.h.

Inheritance diagram for sg::TraversalClass< GVisitor >:
Inheritance graph
[legend]
Collaboration diagram for sg::TraversalClass< GVisitor >:
Collaboration graph
[legend]

Public Member Functions

 TraversalClass (GVisitor gv)
 
void visit (SgNode *n)
 this method is called at every traversed node.
 
GVisitor visitor ()
 
- Public Member Functions inherited from AstSimpleProcessing
void traverse (SgNode *node, Order treeTraversalOrder)
 traverse the entire AST. Order defines preorder (preorder) or postorder (postorder) traversal. Default is 'preorder'.
 
void traverseWithinFile (SgNode *node, Order treeTraversalOrder)
 traverse only nodes which represent the same file as where the traversal was started
 
void traverseInputFiles (SgProject *projectNode, Order treeTraversalOrder)
 traverse only nodes which represent files which were specified on the command line (=input files).
 
- Public Member Functions inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
DummyAttribute traverse (SgNode *basenode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
DummyAttribute traverseWithinFile (SgNode *basenode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
void traverseInputFiles (SgProject *projectNode, DummyAttribute inheritedValue, t_traverseOrder travOrder=preandpostorder)
 
 SgTreeTraversal (const SgTreeTraversal &)
 
const SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Public Attributes

GVisitor gvisitor
 

Additional Inherited Members

- Public Types inherited from AstSimpleProcessing
typedef t_traverseOrder Order
 
- Public Types inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
typedef StackFrameVector< DummyAttribute > SynthesizedAttributesList
 
- Protected Types inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 
- Protected Member Functions inherited from AstSimpleProcessing
virtual void atTraversalStart ()
 GB (06/04/2007): A new virtual function called at the start of the traversal, before any node is actually visited; can be used to perform a "last-minute" computation of attributes that may have changed since the constructor was executed, but are constant during the traversal itself.
 
virtual void atTraversalEnd ()
 
- Protected Member Functions inherited from SgTreeTraversal< DummyAttribute, DummyAttribute >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Constructor & Destructor Documentation

◆ TraversalClass()

template<class GVisitor >
sg::TraversalClass< GVisitor >::TraversalClass ( GVisitor  gv)
inlineexplicit

Definition at line 1644 of file sageGeneric.h.

Member Function Documentation

◆ visit()

template<class GVisitor >
void sg::TraversalClass< GVisitor >::visit ( SgNode astNode)
inlinevirtual

this method is called at every traversed node.

Implements AstSimpleProcessing.

Definition at line 1649 of file sageGeneric.h.

References sg::dispatch().

◆ visitor()

template<class GVisitor >
GVisitor sg::TraversalClass< GVisitor >::visitor ( )
inline

Definition at line 1655 of file sageGeneric.h.

Member Data Documentation

◆ gvisitor

template<class GVisitor >
GVisitor sg::TraversalClass< GVisitor >::gvisitor

Definition at line 1657 of file sageGeneric.h.


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