, m_TopologyChange(
false)
79, m_NodeBranchDepth(0)
80, m_NodeMaxChildBranchDepth(-1)
81, m_DisableUndo(
false)
82, m_EvalDo(
false) {}
92GetFeatureIdNoCase(
const string& feature_name,
139 virtual bool EvalNext(macro::CMacroRep& m);
165 voidx_ClearBuiltInFunctions();
168 voidx_EvalAdvance();
180, m_Iterator(
n->SubNodeBegin())
182, m_MaxChildBranchDepth(-1) {}
Things for representing and manipulating bio trees.
virtual bool EvalNext(macro::CMacroRep &)
virtual void GetFunctionNames(macro::CMacroParser &parser) const
Tree subclass also has functions and data needed for rendering and selection.
Query tree and associated utility methods.
TNodeList::iterator TNodeList_I
definition of a Culling tree
std::stack< PhyloTreePointer > m_NodeStack
stack of visited nodes up the tree
CPhyloTree::TTreeIdx TTreeIdx
const CBioTreeFeatureDictionary * m_Dictionary
Dictionary of 'features' for the tree.
std::vector< TTreeIdx > m_Selected
current set of selected nodes from the query
CTreeQueryExec(const CBioTreeFeatureDictionary *d)
TBuiltInFunctionsMap m_BuiltInFunctions
functions
int m_NodeMaxChildBranchDepth
Number of branches between the current node and it's most distant (by branch count) child.
bool GetTopologyChange() const
int m_NodeBranchDepth
Depth in tree as an integer - number of branches between current node and root.
bool m_TopologyChange
If true topology changed (e.g. a node was deleted)
virtual CQueryParseNode::EType IdentifierType(const std::string &)
Some applications may know the type of an identifier.
std::vector< TTreeIdx > GetTreeSelected() const
bool m_EvalDo
Flag indicates if the work should be performed on the Do clause.
CRef< CSelectionSetEdit > m_SelectionSetEdit
Undo-redo buffer for selection sets (which are stored in biotreecontainer user data)
CFeatureEdit * GetFeatureEdit()
TTreeIdx m_EvalNode
Node currently being evaluated.
bool m_DisableUndo
To disable use of undo buffer (m_FeatureEdit)
CRef< CFeatureEdit > m_FeatureEdit
The undo/redo buffer for node properties.
CSelectionSetEdit * GetSelectionEdit()
map< string, ITreeMacroFunction * > TBuiltInFunctionsMap
CRef< CMacroCmdComposite > m_CmdComposite
CPhyloTree::TNodeType TNodeType
Base class for functions which can be called from the WHERE or DO clauses of macros/queries using the...
int64_t Int8
8-byte (64-bit) signed integer
virtual bool EvalComplete()
virtual TFieldID GetIdentifier(const std::string &)
virtual bool ResolveIdentifier(const std::string &, bool &)
If query has an identifier, this will resolve it in an application-specific way.
virtual void CallFunction(const string &name, CQueryParseTree::TNode &node)
Extend this function to look up and invoke functions that appear in the query.
virtual bool HasIdentifier(const std::string &)
@ eNotSet
Produced by the (private) default constructor.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int TBioTreeFeatureId
Feature Id.
#define NCBI_GUIWIDGETS_PHYLO_TREE_EXPORT
Interface class for macro function implementation.
const GenericPointer< typename T::ValueType > T2 value
Query parser execution implementations.
Edits for one or more nodes.
Edits for one or more nodes.
for iterating through the node tree without recursion
PhyloTreePointer(TNodeType *n)
TNodeType::TNodeList_I m_Iterator
int m_MaxChildBranchDepth
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