A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCTreeQueryExec.html below:

NCBI C++ ToolKit: CTreeQueryExec Class Reference

Search Toolkit Book for CTreeQueryExec

class CTreeQueryExec More...

#include <gui/widgets/phylo_tree/phylo_tree_query_exec.hpp>

  CTreeQueryExec (const CBioTreeFeatureDictionary *d)   virtual  ~CTreeQueryExec ()   void  SetTree (CPhyloTree *t)   Set current node for query execution. More...
  TBioTreeFeatureId  GetFeatureIdNoCase (const string &feature_name, const CBioTreeFeatureDictionary *dict) const   Returns id of a registred tree feature based on case-insensitive compare or -1 if feature does not exist. More...
  virtual TFieldID  GetIdentifier (const std::string &identifier)   Get biotree feature ID for identifier or return TFieldID(-1) More...
  virtual bool  HasIdentifier (const std::string &identifier)   Search for 'identifier' in dictionary and return true if it exists. More...
  virtual CQueryParseNode::EType  IdentifierType (const std::string &)   Some applications may know the type of an identifier. More...
  virtual void  CallFunction (const string &name, CQueryParseTree::TNode &node)   Extend this function to look up and invoke functions that appear in the query. More...
  virtual void  EvalStart ()   Move to the first row for eval, return false if table empty. More...
  virtual bool  EvalNext (CQueryParseTree &qtree)   Move to the next row for eval, return false if table size < m_EvalRow+1. More...
  virtual bool  EvalNext (macro::CMacroRep &m)   virtual bool  EvalComplete ()   virtual void  GetFunctionNames (macro::CMacroParser &parser) const   std::vector< TTreeIdxGetTreeSelected () const   TTreeIdx  GetCurrentIdx ()   CFeatureEditGetFeatureEdit ()   CSelectionSetEditGetSelectionEdit ()   bool  GetTopologyChange () const   void  DisableUndo (bool b)  

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...
  virtual bool  ResolveIdentifier (const std::string &identifier, Int8 &value)   Search for integer 'identifier' in feature list and return if found. More...
  virtual bool  ResolveIdentifier (const std::string &identifier, double &value)   Search for float 'identifier' in feature list and return if found. More...
  virtual bool  ResolveIdentifier (const std::string &identifier, std::string &value)   Search for string 'identifier' in feature list and return if found. More...
  virtual bool  ResolveIdentifier (const TFieldID &id, bool &value)   Following functions look up field based on a biotree feature id. More...
  virtual bool  ResolveIdentifier (const TFieldID &id, Int8 &value)   virtual bool  ResolveIdentifier (const TFieldID &id, double &value)   virtual bool  ResolveIdentifier (const TFieldID &id, std::string &value)     CMacroQueryExec ()   virtual  ~CMacroQueryExec ()   void  SetMacroRep (macro::CMacroRep *mr)   macro::CMacroRep *  GetMacroRep ()   CRef< CQueryNodeValueGetOrCreateRTVar (const string &name)   Gets or creates run-time vars (used in assignment in Do clause) More...
  bool  ResolveRTVar (const string &identifier, CQueryNodeValue &v)   Return the value of RT variable in node "v". More...
    CQueryExec ()   virtual  ~CQueryExec ()   void  AddFunc (CQueryParseNode::EType func_type, CQueryFunctionBase *func)   Register function implementation. More...
  void  AddImplicitSearchFunc (CQueryFunctionBase *func)   This is a callback for implicit search nodes Our syntax allows queries like (a=1) AND "search_term" Execution recognises "search_term" connected with logical operation represents a special case. More...
  CQueryFunctionBaseGetImplicitSearchFunc ()   CQueryFunctionBaseGetFunc (CQueryParseNode::EType func_type)   Return query function pointer (if registered). More...
  virtual void  Evaluate (CQueryParseTree &qtree)   Run query tree evaluation. More...
  virtual void  Evaluate (CQueryParseTree &qtree, CQueryParseTree::TNode &node)   int  GetQueriedCount () const   int  GetExceptionCount () const     CObject (void)   Constructor. More...
    CObject (const CObject &src)   Copy constructor. More...
  virtual  ~CObject (void)   Destructor. More...
  CObjectoperator= (const CObject &src) THROWS_NONE   Assignment operator. More...
  bool  CanBeDeleted (void) const THROWS_NONE   Check if object can be deleted. More...
  bool  IsAllocatedInPool (void) const THROWS_NONE   Check if object is allocated in memory pool (not system heap) More...
  bool  Referenced (void) const THROWS_NONE   Check if object is referenced. More...
  bool  ReferencedOnlyOnce (void) const THROWS_NONE   Check if object is referenced only once. More...
  void  AddReference (void) const   Add reference to object. More...
  void  RemoveReference (void) const   Remove reference to object. More...
  void  ReleaseReference (void) const   Remove reference without deleting object. More...
  virtual void  DoNotDeleteThisObject (void)   Mark this object as not allocated in heap – do not delete this object. More...
  virtual void  DoDeleteThisObject (void)   Mark this object as allocated in heap – object can be deleted. More...
  void *  operator new (size_t size)   Define new operator for memory allocation. More...
  void *  operator new[] (size_t size)   Define new[] operator for 'array' memory allocation. More...
  void  operator delete (void *ptr)   Define delete operator for memory deallocation. More...
  void  operator delete[] (void *ptr)   Define delete[] operator for memory deallocation. More...
  void *  operator new (size_t size, void *place)   Define new operator. More...
  void  operator delete (void *ptr, void *place)   Define delete operator. More...
  void *  operator new (size_t size, CObjectMemoryPool *place)   Define new operator using memory pool. More...
  void  operator delete (void *ptr, CObjectMemoryPool *place)   Define delete operator. More...
  virtual void  DebugDump (CDebugDumpContext ddc, unsigned int depth) const   Define method for dumping debug information. More...
    CDebugDumpable (void)   virtual  ~CDebugDumpable (void)   void  DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const   void  DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const   void  DumpToConsole (void) const  

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 ) virtual

Reimplemented 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 ( ) virtual

Move 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 ( ) protected

Moves 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_Tree

The 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