|
ROSE 0.11.145.354
|
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 1445 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 1447 of file sageGeneric.h.
| typedef std::pair<AncestorNode*, QualSgNode*> sg::AncestorTypeFinder< AncestorNode, QualSgNode >::Pair |
Definition at line 1448 of file sageGeneric.h.
|
inline |
Definition at line 1452 of file sageGeneric.h.
|
inline |
Definition at line 1460 of file sageGeneric.h.
|
inline |
Definition at line 1461 of file sageGeneric.h.
|
inline |
Definition at line 1463 of file sageGeneric.h.
| Pair sg::AncestorTypeFinder< AncestorNode, QualSgNode >::res |
Definition at line 1450 of file sageGeneric.h.