ROSE 0.11.145.147
Public Types | Public Member Functions | Public Attributes | List of all members
sg::TraversalFunction< SageNode > Struct Template Reference

Description

template<class SageNode>
struct sg::TraversalFunction< SageNode >

executes a functor for a specific node type

internal use

Definition at line 1604 of file sageGeneric.h.

#include <sageInterface/sageGeneric.h>

Public Types

typedef void(* TransformHandlerFn) (SageNode *)
 

Public Member Functions

 TraversalFunction (TransformHandlerFn fun)
 
void handle (SgNode &)
 
void handle (SageNode &n)
 

Public Attributes

TransformHandlerFn fn
 

Member Typedef Documentation

◆ TransformHandlerFn

template<class SageNode >
typedef void(* sg::TraversalFunction< SageNode >::TransformHandlerFn) (SageNode *)

Definition at line 1606 of file sageGeneric.h.

Constructor & Destructor Documentation

◆ TraversalFunction()

template<class SageNode >
sg::TraversalFunction< SageNode >::TraversalFunction ( TransformHandlerFn  fun)
inlineexplicit

Definition at line 1609 of file sageGeneric.h.

Member Function Documentation

◆ handle() [1/2]

template<class SageNode >
void sg::TraversalFunction< SageNode >::handle ( SgNode )
inline

Definition at line 1613 of file sageGeneric.h.

◆ handle() [2/2]

template<class SageNode >
void sg::TraversalFunction< SageNode >::handle ( SageNode &  n)
inline

Definition at line 1614 of file sageGeneric.h.

Member Data Documentation

◆ fn

template<class SageNode >
TransformHandlerFn sg::TraversalFunction< SageNode >::fn

Definition at line 1616 of file sageGeneric.h.


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