ROSE 0.11.145.192
|
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 1369 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 1371 of file sageGeneric.h.
typedef std::pair<AncestorNode*, QualSgNode*> sg::AncestorTypeFinder< AncestorNode, QualSgNode >::Pair |
Definition at line 1372 of file sageGeneric.h.
|
inline |
Definition at line 1376 of file sageGeneric.h.
|
inline |
Definition at line 1384 of file sageGeneric.h.
|
inline |
Definition at line 1385 of file sageGeneric.h.
|
inline |
Definition at line 1387 of file sageGeneric.h.
Pair sg::AncestorTypeFinder< AncestorNode, QualSgNode >::res |
Definition at line 1374 of file sageGeneric.h.