Skip to content

sg::AncestorTypeFinder

helper class for _ancestor

Synopsis

Declared in <SageIII/sageInterface/sageGeneric.h>

template<
    class AncestorNode,
    class QualSgNode>
struct AncestorTypeFinder
    : DefaultHandler<SgProject const>

Base Classes

Name

Description

DefaultHandler<SgProject const>

struct DefaultHandler

Types

Name

Base

Pair

Member Functions

Name

Description

AncestorTypeFinder [constructor]

Default constructor

handle

operator Pair

Conversion to Pair

Data Members

Name

res

Using Declarations

Name

handle

Description

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

Name

Description

AncestorNode

the type of ancestors to look for

QualSgNode

either const SgNode* or SgNode* depending if the search is over constant nodes or not.

Created with MrDocs