ROSE  0.11.145.0
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 1287 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
 

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