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

Comparator for TreeRecord objects. More...

#include <tkrzw_dbm_tree_impl.h>

Public Member Functions

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

Public Attributes

KeyComparator comp
 The key comparator. More...
 

Detailed Description

Comparator for TreeRecord objects.

Constructor & Destructor Documentation

◆ TreeRecordComparator()

tkrzw::TreeRecordComparator::TreeRecordComparator ( KeyComparator  comp)
explicit

Constructor.

Member Function Documentation

◆ operator()()

bool tkrzw::TreeRecordComparator::operator() ( const TreeRecord *const &  a,
const TreeRecord *const &  b 
) const

Comparing operator.

Member Data Documentation

◆ comp

KeyComparator tkrzw::TreeRecordComparator::comp

The key comparator.