NCBI C++ ToolKit
Public Member Functions | List of all members
CMacroFunction_NumChildren Class Reference

Search Toolkit Book for CMacroFunction_NumChildren

CMacroFunction_NumChildren Returns the number of children of the current node so that you can search for nodes based on that factor, e.g. More...

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

+ Inheritance diagram for CMacroFunction_NumChildren:
+ Collaboration diagram for CMacroFunction_NumChildren:

Public Member Functions

 CMacroFunction_NumChildren (EScopeEnum func_scope, CPhyloTree *tree)
 
virtual void TheFunction ()
 
- Public Member Functions inherited from ITreeMacroFunction
 ITreeMacroFunction (EScopeEnum func_scope, CPhyloTree *tree)
 Ctor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ITreeMacroFunction
virtual void x_InitCall (CPhyloTreeNode &data)
 Functions make the action and collect statistics. More...
 
virtual void x_SetUserObjects (CQueryParseTree::TNode &qnode)
 
void x_AssignReturnValue (const CObjectInfo &oi, const string &field_name)
 function useful mostly for functions in the WHERE clause More...
 
- Static Protected Member Functions inherited from ITreeMacroFunction
static string JSFilter (const string &str)
 Filter out java/javascript keywords that could possibly be used in xss attacks, particularly event handler names and < and > symbols. More...
 
- Protected Attributes inherited from ITreeMacroFunction
CPhyloTreeNodem_Node
 
CPhyloTreem_Tree
 
vector< CRef< CQueryNodeValue > > m_Args
 
CRef< CQueryNodeValuem_Result
 
- Static Protected Attributes inherited from ITreeMacroFunction
static string s_JSFilterdKeywords []
 
static pair< string, strings_JSSwapKeywords []
 

Detailed Description

CMacroFunction_NumChildren Returns the number of children of the current node so that you can search for nodes based on that factor, e.g.

NumChildren("") > 2

Definition at line 288 of file phylo_tree_query_macro_fns.hpp.

Constructor & Destructor Documentation

◆ CMacroFunction_NumChildren()

CMacroFunction_NumChildren::CMacroFunction_NumChildren ( EScopeEnum  func_scope,
CPhyloTree tree 
)
inline

Definition at line 291 of file phylo_tree_query_macro_fns.hpp.

Member Function Documentation

◆ TheFunction()

void CMacroFunction_NumChildren::TheFunction ( )
virtual

Definition at line 632 of file phylo_tree_query_macro_fns.cpp.

References QueryValueType::eInt.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:13 2024 by modify_doxy.py rev. 669887