tesseract  5.0.0-alpha-619-ge9db
UnicityTableEqEq< T > Class Template Reference

#include <unicity_table.h>

Inheritance diagram for UnicityTableEqEq< T >:
UnicityTable< T >

Public Member Functions

 UnicityTableEqEq ()
 
- Public Member Functions inherited from UnicityTable< T >
 UnicityTable ()
 
 ~UnicityTable ()
 Clear the structures and deallocate internal structures. More...
 
void reserve (int size)
 
int size () const
 Return the size used. More...
 
const T & get (int id) const
 Return the object from an id. More...
 
T * get_mutable (int id)
 
int get_id (T object) const
 
bool contains (T object) const
 Return true if T is in the table. More...
 
contains_id (int id) const
 Return true if the id is valid. More...
 
int push_back (T object)
 Add an element in the table. More...
 
void set_clear_callback (std::function< void(T)> cb)
 
void set_compare_callback (std::function< bool(const T &, const T &)> cb)
 
void clear ()
 
void move (UnicityTable< T > *from)
 
bool write (FILE *f, std::function< bool(FILE *, const T &)> cb) const
 
bool read (tesseract::TFile *f, std::function< bool(tesseract::TFile *, T *)> cb)
 

Detailed Description

template<typename T>
class UnicityTableEqEq< T >

Definition at line 106 of file unicity_table.h.

Constructor & Destructor Documentation

◆ UnicityTableEqEq()

template<typename T>
UnicityTableEqEq< T >::UnicityTableEqEq ( )
inline

Definition at line 108 of file unicity_table.h.

108  {
109  using namespace std::placeholders; // for _1, _2
111  std::bind(tesseract::cmp_eq<T>, _1, _2));
112  }

The documentation for this class was generated from the following file:
UnicityTable::set_compare_callback
void set_compare_callback(std::function< bool(const T &, const T &)> cb)
Definition: unicity_table.h:74