SageInterface::querySubTree¶
Query a subtree to get all nodes of a given type, with an appropriate downcast.
Synopsis¶
Declared in <SageIII/sageInterface/sageInterface.h>
template<typename NodeType>
std::vector<NodeType*>
querySubTree(
SgNode* top,
VariantT variant = (VariantT)NodeType::static_variant); Return Value¶
A standard container which offers fixed time access to individual elements in any order.
Parameters¶
| Name | Description |
|---|---|
| top | This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs