NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
CDefaultNodeKeyGetter< TValue, TKeyEqualP > Class Template Reference

Search Toolkit Book for CDefaultNodeKeyGetter

Bi-directionaly linked N way tree. More...

#include <corelib/ncbi_tree.hpp>

+ Inheritance diagram for CDefaultNodeKeyGetter< TValue, TKeyEqualP >:
+ Collaboration diagram for CDefaultNodeKeyGetter< TValue, TKeyEqualP >:

Public Types

typedef TValue TNodeType
 same as CTreeNode template argument More...
 
typedef TValue TValueType
 node's value More...
 
typedef TValue TKeyType
 node's key More...
 
typedef TKeyEqualP TKeyEqual
 key equal comparator More...
 

Public Member Functions

 CDefaultNodeKeyGetter (const TKeyEqual &key_equal=TKeyEqual())
 
const TKeyEqualGetKeyEqual () const
 Get key comparator. More...
 
const TValueTypeGetValue (const TNodeType &node) const
 Get value of a node. More...
 
TValueTypeGetValueNC (TNodeType &node) const
 Get non-const value of a node. More...
 
const TKeyTypeGetKey (const TNodeType &node) const
 Get key of a node. More...
 
TKeyTypeGetKeyNC (TNodeType &node) const
 Get non-const key. More...
 
bool KeyEqual (const TKeyType &key1, const TKeyType &key2) const
 Check if the two keys are equal. More...
 
bool KeyCompare (const TKeyType &key1, const TKeyType &key2) const
 Check if the two keys are equal. More...
 

Detailed Description

template<class TValue, class TKeyEqualP = std::equal_to<TValue>>
class CDefaultNodeKeyGetter< TValue, TKeyEqualP >

Bi-directionaly linked N way tree.

Default key getter for CTreeNode

Definition at line 66 of file ncbi_tree.hpp.


The documentation for this class was generated from the following file:
Modified on Sat Jun 22 10:43:11 2024 by modify_doxy.py rev. 669887