tesseract  5.0.0-alpha-619-ge9db
tesseract::KDPairInc< Key, Data > Struct Template Reference

#include <kdpair.h>

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

Public Member Functions

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

Static Public Member Functions

static KDPairIncRecastDataPointer (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::KDPairInc< Key, Data >

Definition at line 51 of file kdpair.h.

Constructor & Destructor Documentation

◆ KDPairInc() [1/2]

template<typename Key, typename Data>
tesseract::KDPairInc< Key, Data >::KDPairInc ( )
default

◆ KDPairInc() [2/2]

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

Definition at line 53 of file kdpair.h.

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

Member Function Documentation

◆ operator<()

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

Definition at line 55 of file kdpair.h.

55  {
56  return this->key < other.key;
57  }

◆ RecastDataPointer()

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

Definition at line 60 of file kdpair.h.

60  {
61  return reinterpret_cast<KDPairInc*>(data_ptr);
62  }

The documentation for this struct was generated from the following file:
tesseract::KDPair::key
Key key
Definition: kdpair.h:46