tesseract  4.00.00dev
tesseract::KDPairDec< Key, Data > Struct Template Reference

#include <kdpair.h>

Inheritance diagram for tesseract::KDPairDec< Key, Data >:
tesseract::KDPair< Key, Data >

Public Member Functions

 KDPairDec ()
 
 KDPairDec (Key k, Data d)
 
int operator< (const KDPairDec< Key, Data > &other) const
 
- Public Member Functions inherited from tesseract::KDPair< Key, Data >
 KDPair ()
 
 KDPair (Key k, Data d)
 
int operator== (const KDPair< Key, Data > &other) const
 

Static Public Member Functions

static KDPairDecRecastDataPointer (Data *data_ptr)
 

Additional Inherited Members

- Public Attributes inherited from tesseract::KDPair< Key, Data >
Data data
 
Key key
 

Detailed Description

template<typename Key, typename Data>
struct tesseract::KDPairDec< Key, Data >

Definition at line 67 of file kdpair.h.

Constructor & Destructor Documentation

◆ KDPairDec() [1/2]

template<typename Key , typename Data >
tesseract::KDPairDec< Key, Data >::KDPairDec ( )
inline

Definition at line 68 of file kdpair.h.

68 {}

◆ KDPairDec() [2/2]

template<typename Key , typename Data >
tesseract::KDPairDec< Key, Data >::KDPairDec ( Key  k,
Data  d 
)
inline

Definition at line 69 of file kdpair.h.

69 : KDPair<Key, Data>(k, d) {}

Member Function Documentation

◆ operator<()

template<typename Key , typename Data >
int tesseract::KDPairDec< Key, Data >::operator< ( const KDPairDec< Key, Data > &  other) const
inline

Definition at line 72 of file kdpair.h.

72  {
73  return this->key > other.key;
74  }

◆ RecastDataPointer()

template<typename Key , typename Data >
static KDPairDec* tesseract::KDPairDec< Key, Data >::RecastDataPointer ( Data *  data_ptr)
inlinestatic

Definition at line 77 of file kdpair.h.

77  {
78  return reinterpret_cast<KDPairDec*>(data_ptr);
79  }

The documentation for this struct was generated from the following file: