Tkrzw
Public Member Functions | Public Attributes | List of all members
tkrzw::TreeLinkComparator Struct Referencefinal

Comparator for TreeLink objects. More...

#include <tkrzw_dbm_tree_impl.h>

Public Member Functions

 TreeLinkComparator (KeyComparator comp)
 Constructor. More...
 
bool operator() (const TreeLink *const &a, const TreeLink *const &b) const
 Comparing operator. More...
 

Public Attributes

KeyComparator comp
 The key comparator. More...
 

Detailed Description

Comparator for TreeLink objects.

Constructor & Destructor Documentation

◆ TreeLinkComparator()

tkrzw::TreeLinkComparator::TreeLinkComparator ( KeyComparator  comp)
explicit

Constructor.

Member Function Documentation

◆ operator()()

bool tkrzw::TreeLinkComparator::operator() ( const TreeLink *const &  a,
const TreeLink *const &  b 
) const

Comparing operator.

Member Data Documentation

◆ comp

KeyComparator tkrzw::TreeLinkComparator::comp

The key comparator.