Search Toolkit Book for CTreeQueryExec
class CTreeQueryExec More...
#include <gui/widgets/phylo_tree/phylo_tree_query_exec.hpp>
Search for bool 'identifier' in feature list and return if found
virtual bool ResolveIdentifier (const std::string &identifier, bool &value) If query has an identifier, this will resolve it in an application-specific way. More...class CTreeQueryExec
Subclass of CQueryExec that adds functions spcific to the phylogenetic tree that allow it to extract data from the feature lists of individual nodes so that those values can be used in queries.
Definition at line 66 of file phylo_tree_query_exec.hpp.
◆ TBuiltInFunctionsMap ◆ TNodeType ◆ TTreeIdx ◆ TTreeType ◆ CTreeQueryExec() ◆ ~CTreeQueryExec() CTreeQueryExec::~CTreeQueryExec ( ) virtual ◆ CallFunction()Extend this function to look up and invoke functions that appear in the query.
Reimplemented from CQueryExec.
Definition at line 301 of file phylo_tree_query_exec.cpp.
References DIAG_COMPILE_INFO, CQueryParseNode::eFrom, CQueryParseNode::eFunction, CException::GetMsg(), CTreeModel< TNode >::GetNode(), CRef< C, Locker >::GetObject(), CTreeNode< TValue, TKeyGetterP >::GetParent(), CTreeNode< TValue, TKeyGetterP >::GetValue(), Info(), CQueryParseNode::SSrcLoc::line, LOG_POST, m_CmdComposite, m_EvalDo, m_EvalNode, m_NodeBranchDepth, m_NodeMaxChildBranchDepth, m_Tree, NULL, CQueryParseNode::SSrcLoc::pos, CQueryNodeValue::SetBranchDepth(), CQueryNodeValue::SetMaxChildBranchDepth(), ThrowCMacroExecException(), and x_ResolveFunctionName().
◆ DisableUndo() void CTreeQueryExec::DisableUndo ( bool b ) inline ◆ EvalComplete() bool CTreeQueryExec::EvalComplete ( ) virtual ◆ EvalNext() [1/2]Move to the next row for eval, return false if table size < m_EvalRow+1.
Reimplemented from CMacroQueryExec.
Definition at line 387 of file phylo_tree_query_exec.cpp.
References CQueryExec::Evaluate(), CException::GetMsg(), CQueryParseTree::GetQueryTree(), CQueryNodeValue::GetValue(), CTreeNode< TValue, TKeyGetterP >::GetValue(), Info(), LOG_POST, m_EvalNode, CQueryExec::m_ExceptionCount, CQueryExec::m_QueriedCount, m_Selected, NULL, and x_EvalAdvance().
◆ EvalNext() [2/2] bool CTreeQueryExec::EvalNext ( macro::CMacroRep & m ) virtualReimplemented from CMacroQueryExec.
Definition at line 425 of file phylo_tree_query_exec.cpp.
References CQueryExec::Evaluate(), f, CPhyloNodeData::GetId(), CException::GetMsg(), CTreeModel< TNode >::GetNode(), CQueryParseTree::GetQueryTree(), CFeatureEdit::GetUpdated(), CTreeModelNode< TData >::GetValue(), CQueryNodeValue::GetValue(), CTreeNode< TValue, TKeyGetterP >::GetValue(), i, Info(), LOG_POST, m_DisableUndo, m_EvalDo, m_EvalNode, CQueryExec::m_ExceptionCount, m_FeatureEdit, CQueryExec::m_QueriedCount, m_Selected, m_TopologyChange, m_Tree, NCBI_THROW, NULL, CMacroQueryExec::SetMacroRep(), ncbi::grid::netcache::search::fields::size, and x_EvalAdvance().
◆ EvalStart() void CTreeQueryExec::EvalStart ( ) virtualMove to the first row for eval, return false if table empty.
Reimplemented from CQueryExec.
Definition at line 358 of file phylo_tree_query_exec.cpp.
References map_checker< Container >::clear(), CSelectionSetEdit::GetPrevSet(), CTreeModel< TNode >::GetRoot(), CTreeModel< TNode >::GetRootIdx(), CPhyloTree::GetSelectionSets(), m_EvalNode, CQueryExec::m_ExceptionCount, m_FeatureEdit, m_NodeBranchDepth, m_NodeMaxChildBranchDepth, m_NodeStack, CQueryExec::m_QueriedCount, CMacroQueryExec::m_RTVars, m_Selected, m_SelectionSetEdit, m_TopologyChange, m_Tree, CRef< C, Locker >::Reset(), and x_EvalAdvance().
◆ GetCurrentIdx() TTreeIdx CTreeQueryExec::GetCurrentIdx ( ) inline ◆ GetFeatureEdit() ◆ GetFeatureIdNoCase() ◆ GetFunctionNames() void CTreeQueryExec::GetFunctionNames ( macro::CMacroParser & parser ) const virtual ◆ GetIdentifier() ◆ GetSelectionEdit() ◆ GetTopologyChange() bool CTreeQueryExec::GetTopologyChange ( ) const inline ◆ GetTreeSelected() std::vector<TTreeIdx> CTreeQueryExec::GetTreeSelected ( ) const inline ◆ HasIdentifier() ◆ IdentifierType()Some applications may know the type of an identifier.
This hook should be overriden to return an identifier's type, when available. Return one of eIntConst, eBoolConst, eFloatConst, eString, or eNotSet.
Reimplemented from CQueryExec.
Definition at line 130 of file phylo_tree_query_exec.hpp.
References CQueryParseNode::eNotSet.
◆ ResolveIdentifier() [1/8] ◆ ResolveIdentifier() [2/8] ◆ ResolveIdentifier() [3/8] ◆ ResolveIdentifier() [4/8] ◆ ResolveIdentifier() [5/8] ◆ ResolveIdentifier() [6/8] ◆ ResolveIdentifier() [7/8] ◆ ResolveIdentifier() [8/8] ◆ SetTree() ◆ x_ClearBuiltInFunctions() void CTreeQueryExec::x_ClearBuiltInFunctions ( ) protected ◆ x_EvalAdvance() void CTreeQueryExec::x_EvalAdvance ( ) protectedMoves to next node for 'EvalNext' functions.
Definition at line 537 of file phylo_tree_query_exec.cpp.
References CPhyloTree::FindNodeById(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::IsLeaf(), CPhyloTreeNode::IsUnused(), m_EvalNode, CTreeQueryExec::PhyloTreePointer::m_Iterator, CTreeQueryExec::PhyloTreePointer::m_Node, m_NodeBranchDepth, m_NodeMaxChildBranchDepth, m_NodeStack, m_Tree, max(), and CTreeModelNode< TData >::SubNodeEnd().
Referenced by EvalNext(), and EvalStart().
◆ x_ResolveFunctionName() ◆ m_BuiltInFunctions ◆ m_CmdComposite ◆ m_Dictionary ◆ m_DisableUndo bool CTreeQueryExec::m_DisableUndo protected ◆ m_EvalDo bool CTreeQueryExec::m_EvalDo protected ◆ m_EvalNode ◆ m_FeatureEdit ◆ m_NodeBranchDepth int CTreeQueryExec::m_NodeBranchDepth protected ◆ m_NodeMaxChildBranchDepth int CTreeQueryExec::m_NodeMaxChildBranchDepth protected ◆ m_NodeStack ◆ m_Selected std::vector<TTreeIdx> CTreeQueryExec::m_Selected protected ◆ m_SelectionSetEdit ◆ m_TopologyChange bool CTreeQueryExec::m_TopologyChange protected ◆ m_TreeThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4