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

#include <kdpair.h>

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

Public Member Functions

 KDPair ()
 
 KDPair (Key k, Data d)
 
int operator== (const KDPair< Key, Data > &other) const
 

Public Attributes

Data data
 
Key key
 

Detailed Description

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

Definition at line 34 of file kdpair.h.

Constructor & Destructor Documentation

◆ KDPair() [1/2]

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

Definition at line 35 of file kdpair.h.

35 {}

◆ KDPair() [2/2]

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

Definition at line 36 of file kdpair.h.

36 : data(d), key(k) {}

Member Function Documentation

◆ operator==()

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

Definition at line 38 of file kdpair.h.

38  {
39  return key == other.key;
40  }

Member Data Documentation

◆ data

template<typename Key, typename Data>
Data tesseract::KDPair< Key, Data >::data

Definition at line 45 of file kdpair.h.

◆ key

template<typename Key, typename Data>
Key tesseract::KDPair< Key, Data >::key

Definition at line 46 of file kdpair.h.


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