NCBI C++ ToolKit
|
Functions | |
vector< string > | GetDoFunctions (const macro::CMacroRep ¯o_rep) |
Returns the list of do-functions present in the DO clause of the macro - includes multiples. More... | |
TMacroFuncList | GetDoFunctionsWithArgs (const macro::CMacroRep ¯o_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 ¯o_rep) |
Returns the list of WHERE functions and their arguments as they appear in the macro. More... | |
void | LookupFncArguments (const macro::CMacroRep ¯o_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" |
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().
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().
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().
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()().
Definition at line 75 of file macro_parse_functions.hpp.
Referenced by CMacroFeatsOnSeqPanel::GetFuncWithArgs(), CWhereQueryTreeGetArgs::operator()(), CMacroMatcherPanelBase::s_GetMatcherPanels(), CMacroFeatsOnSeqPanel::SetMatcher(), CMacroAdvStringConstraintPanel< T >::SetMatcher(), CMacroInterpreter::x_GetWhereFncValidatorMap(), and CMacroInterpreter::x_InterpretWhereFunctions().
Definition at line 73 of file macro_parse_functions.hpp.
Referenced by CWhereQueryTreeGetArgs::operator()(), CMacroInterpreter::x_CleanupWhereFunctions(), CMacroInterpreter::x_ConsolidateWhereFunctions(), CMacroInterpreter::x_GetWhereFncValidatorMap(), and CMacroInterpreter::x_UpdateFieldsForMatPeptide().
Definition at line 71 of file macro_parse_functions.hpp.
Referenced by CWhereQueryTreeGetArgs::operator()(), CMacroInterpreter::x_CleanupWhereFunctions(), and CMacroInterpreter::x_GetWhereFncValidatorMap().
Temporary function name to return the relevant information from the Where clause.
Definition at line 67 of file macro_parse_functions.hpp.
Referenced by CWhereQueryTreeGetArgs::operator()(), CMacroInterpreter::x_CleanupWhereFunctions(), CMacroInterpreter::x_ConsolidateWhereFunctions(), CMacroInterpreter::x_GetWhereFncValidatorMap(), and CMacroInterpreter::x_UpdateTargetFieldForSeqdesc().
Definition at line 69 of file macro_parse_functions.hpp.
Referenced by CWhereQueryTreeGetArgs::operator()(), CMacroInterpreter::x_CleanupWhereFunctions(), and CMacroInterpreter::x_GetWhereFncValidatorMap().