Skip to content

AstQueryNamespace::querySubTree

**** The function Result querySubTree ( SgNode * subTree, _Result (__x)(SgNode_,_Arg), Arg x_arg, AstQueryNamespace::QueryDepth defineQueryType =AstQueryNamespace::AllNodes ) will query the subtree of the IR node in the first argument for nodessatisfying the criteria specified in and returned by the function pointer inthe second argument.**

Synopsis

Declared in <src/midend/astQuery/astQuery.h>

template<
    class _Arg,
    class _Result>
_Result
querySubTree(
    SgNode* subTree,
    _Result(* __x)(SgNode*, _Arg),
    _Arg x_arg,
    AstQueryNamespace::QueryDepth defineQueryType = AstQueryNamespace::AllNodes);

Parameters

Name

Description

subTree

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs