ROSE 0.11.145.147
|
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.
AncestorNode | the type of ancestors to look for |
QualSgNode | either const SgNode* or SgNode* depending if the search is over constant nodes or not. |
Definition at line 1365 of file sageGeneric.h.
#include <sageInterface/sageGeneric.h>
Public Types | |
typedef DefaultHandler< const SgProject > | Base |
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 |
typedef DefaultHandler<const SgProject> sg::AncestorTypeFinder< AncestorNode, QualSgNode >::Base |
Definition at line 1367 of file sageGeneric.h.
typedef std::pair<AncestorNode*, QualSgNode*> sg::AncestorTypeFinder< AncestorNode, QualSgNode >::Pair |
Definition at line 1368 of file sageGeneric.h.
|
inline |
Definition at line 1372 of file sageGeneric.h.
|
inline |
Definition at line 1380 of file sageGeneric.h.
|
inline |
Definition at line 1381 of file sageGeneric.h.
|
inline |
Definition at line 1383 of file sageGeneric.h.
Pair sg::AncestorTypeFinder< AncestorNode, QualSgNode >::res |
Definition at line 1370 of file sageGeneric.h.