tesseract  5.0.0-alpha-619-ge9db
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 ()=default
 
 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 ( )
default

◆ 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:
tesseract::KDPair::key
Key key
Definition: kdpair.h:46
tesseract::KDPair::data
Data data
Definition: kdpair.h:45