NCBI C++ ToolKit
Functions | Variables
NMFncParse Namespace Reference

Functions

vector< stringGetDoFunctions (const macro::CMacroRep &macro_rep)
 Returns the list of do-functions present in the DO clause of the macro - includes multiples. More...
 
TMacroFuncList GetDoFunctionsWithArgs (const macro::CMacroRep &macro_rep, TMacroFuncList &do_constraints)
 Returns the list of DO functions and their arguments as they appear in the macro. More...
 
TMacroFuncList GetWhereFunctionsWithArgs (const macro::CMacroRep &macro_rep)
 Returns the list of WHERE functions and their arguments as they appear in the macro. More...
 
void LookupFncArguments (const macro::CMacroRep &macro_rep, TMacroFuncList &func_list)
 Looks up variables names used as function arguments and substitutes their name with their values. More...
 

Variables

const string kPlaceHolderFn = "FieldPlaceHolder"
 Temporary function name to return the relevant information from the Where clause. More...
 
const string kRnaTypeFn = "RNATypePlaceHolder"
 
const string kncRNAclassFn = "ncRNAclassPlaceHolder"
 
const string kFeatTypeFn = "FeatureTypePlaceHolder"
 
const string kComparisonOp = "ComparisonOperator"
 

Function Documentation

◆ GetDoFunctions()

vector< string > NMFncParse::GetDoFunctions ( const macro::CMacroRep &  macro_rep)

Returns the list of do-functions present in the DO clause of the macro - includes multiples.

Definition at line 113 of file macro_parse_functions.cpp.

References Error(), LOG_POST, and TreeBreadthFirstTraverse().

Referenced by CMTreeItemDataBuilder::GetMActionType().

◆ GetDoFunctionsWithArgs()

TMacroFuncList NMFncParse::GetDoFunctionsWithArgs ( const macro::CMacroRep &  macro_rep,
TMacroFuncList do_constraints 
)

Returns the list of DO functions and their arguments as they appear in the macro.

Definition at line 544 of file macro_parse_functions.cpp.

References LookupFncArguments(), and TreeDepthFirstTraverse().

Referenced by CMacroInterpreter::InterpretDoFunctions().

◆ GetWhereFunctionsWithArgs()

TMacroFuncList NMFncParse::GetWhereFunctionsWithArgs ( const macro::CMacroRep &  macro_rep)

Returns the list of WHERE functions and their arguments as they appear in the macro.

Definition at line 859 of file macro_parse_functions.cpp.

References LookupFncArguments(), and TreeDepthFirstTraverse().

Referenced by CMacroInterpreter::x_InterpretWhereFunctions().

◆ LookupFncArguments()

void NMFncParse::LookupFncArguments ( const macro::CMacroRep &  macro_rep,
TMacroFuncList func_list 
)

Looks up variables names used as function arguments and substitutes their name with their values.

Definition at line 876 of file macro_parse_functions.cpp.

References NStr::Join(), NPOS, and NStr::Split().

Referenced by GetDoFunctionsWithArgs(), GetWhereFunctionsWithArgs(), and CDoQueryTreeGetArgs::operator()().

Variable Documentation

◆ kComparisonOp

const string NMFncParse::kComparisonOp = "ComparisonOperator"

◆ kFeatTypeFn

const string NMFncParse::kFeatTypeFn = "FeatureTypePlaceHolder"

◆ kncRNAclassFn

const string NMFncParse::kncRNAclassFn = "ncRNAclassPlaceHolder"

◆ kPlaceHolderFn

const string NMFncParse::kPlaceHolderFn = "FieldPlaceHolder"

◆ kRnaTypeFn

const string NMFncParse::kRnaTypeFn = "RNATypePlaceHolder"
Modified on Fri Sep 20 14:57:14 2024 by modify_doxy.py rev. 669887