ROSE 0.11.145.192
Public Types | Public Member Functions | Public Attributes | List of all members
sg::AncestorTypeFinder< AncestorNode, QualSgNode > Struct Template Reference

Description

template<class AncestorNode, class QualSgNode>
struct sg::AncestorTypeFinder< AncestorNode, QualSgNode >

helper class for _ancestor

implements a type switch over the Rose AST to find an ancestor node with a given type. The search fails at SgProject nodes.

Template Parameters
AncestorNodethe type of ancestors to look for
QualSgNodeeither const SgNode* or SgNode* depending if the search is over constant nodes or not.

Definition at line 1369 of file sageGeneric.h.

#include <sageInterface/sageGeneric.h>

Inheritance diagram for sg::AncestorTypeFinder< AncestorNode, QualSgNode >:
Inheritance graph
[legend]
Collaboration diagram for sg::AncestorTypeFinder< AncestorNode, QualSgNode >:
Collaboration graph
[legend]

Public Types

typedef DefaultHandler< const SgProjectBase
 
typedef std::pair< AncestorNode *, QualSgNode * > Pair
 

Public Member Functions

void handle (QualSgNode &n)
 
void handle (AncestorNode &n)
 
 operator Pair () const
 
- Public Member Functions inherited from sg::DefaultHandler< const SgProject >
void handle (const SgProject &)
 

Public Attributes

Pair res
 

Member Typedef Documentation

◆ Base

template<class AncestorNode , class QualSgNode >
typedef DefaultHandler<const SgProject> sg::AncestorTypeFinder< AncestorNode, QualSgNode >::Base

Definition at line 1371 of file sageGeneric.h.

◆ Pair

template<class AncestorNode , class QualSgNode >
typedef std::pair<AncestorNode*, QualSgNode*> sg::AncestorTypeFinder< AncestorNode, QualSgNode >::Pair

Definition at line 1372 of file sageGeneric.h.

Constructor & Destructor Documentation

◆ AncestorTypeFinder()

template<class AncestorNode , class QualSgNode >
sg::AncestorTypeFinder< AncestorNode, QualSgNode >::AncestorTypeFinder ( )
inline

Definition at line 1376 of file sageGeneric.h.

Member Function Documentation

◆ handle() [1/2]

template<class AncestorNode , class QualSgNode >
void sg::AncestorTypeFinder< AncestorNode, QualSgNode >::handle ( QualSgNode &  n)
inline

Definition at line 1384 of file sageGeneric.h.

◆ handle() [2/2]

template<class AncestorNode , class QualSgNode >
void sg::AncestorTypeFinder< AncestorNode, QualSgNode >::handle ( AncestorNode &  n)
inline

Definition at line 1385 of file sageGeneric.h.

◆ operator Pair()

template<class AncestorNode , class QualSgNode >
sg::AncestorTypeFinder< AncestorNode, QualSgNode >::operator Pair ( ) const
inline

Definition at line 1387 of file sageGeneric.h.

Member Data Documentation

◆ res

template<class AncestorNode , class QualSgNode >
Pair sg::AncestorTypeFinder< AncestorNode, QualSgNode >::res

Definition at line 1374 of file sageGeneric.h.


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