tesseract  5.0.0-alpha-619-ge9db
tesseract::KDVector Class Reference

#include <kdpair.h>

Inheritance diagram for tesseract::KDVector:
GenericVector< IntKDPair >

Additional Inherited Members

- Public Member Functions inherited from GenericVector< IntKDPair >
 GenericVector ()
 
 GenericVector (int size, const IntKDPair &init_val)
 
 GenericVector (const GenericVector &other)
 
GenericVector< IntKDPair > & operator+= (const GenericVector &other)
 
void operator+= (const IntKDPair &t)
 
GenericVector< IntKDPair > & operator= (const GenericVector &other)
 
 ~GenericVector ()
 
void reserve (int size)
 
void double_the_size ()
 
void init_to_size (int size, const IntKDPair &t)
 
void resize_no_init (int size)
 
int size () const
 
size_t unsigned_size () const
 
int size_reserved () const
 
bool empty () const
 
IntKDPair & get (int index) const
 
IntKDPair & back () const
 
IntKDPair & operator[] (int index) const
 
IntKDPair pop_back ()
 
int get_index (const IntKDPair &object) const
 
bool contains (const IntKDPair &object) const
 
IntKDPair contains_index (int index) const
 
int push_back (IntKDPair object)
 
int push_back_new (const IntKDPair &object)
 
int push_front (const IntKDPair &object)
 
void set (const IntKDPair &t, int index)
 
void insert (const IntKDPair &t, int index)
 
void remove (int index)
 
void truncate (int size)
 
void set_clear_callback (std::function< void(IntKDPair)> cb)
 
void set_compare_callback (std::function< bool(const IntKDPair &, const IntKDPair &)> cb)
 
void clear ()
 
void delete_data_pointers ()
 
void move (GenericVector< IntKDPair > *from)
 
bool write (FILE *f, std::function< bool(FILE *, const IntKDPair &)> cb) const
 
bool read (tesseract::TFile *f, std::function< bool(tesseract::TFile *, IntKDPair *)> cb)
 
bool Serialize (FILE *fp) const
 
bool Serialize (tesseract::TFile *fp) const
 
bool DeSerialize (bool swap, FILE *fp)
 
bool DeSerialize (tesseract::TFile *fp)
 
bool SerializeClasses (FILE *fp) const
 
bool SerializeClasses (tesseract::TFile *fp) const
 
bool DeSerializeClasses (bool swap, FILE *fp)
 
bool DeSerializeClasses (tesseract::TFile *fp)
 
void reverse ()
 
void sort ()
 
void sort (int(*comparator)(const void *, const void *))
 
bool bool_binary_search (const IntKDPair &target) const
 
int binary_search (const IntKDPair &target) const
 
void compact_sorted ()
 
int choose_nth_item (int target_index)
 
void swap (int index1, int index2)
 
bool WithinBounds (const IntKDPair &rangemin, const IntKDPair &rangemax) const
 
- Static Public Member Functions inherited from GenericVector< IntKDPair >
static bool SkipDeSerialize (tesseract::TFile *fp)
 
static bool SkipDeSerializeClasses (tesseract::TFile *fp)
 
static IntKDPair * double_the_size_memcpy (int current_size, IntKDPair *data)
 
- Protected Member Functions inherited from GenericVector< IntKDPair >
int choose_nth_item (int target_index, int start, int end, unsigned int *seed)
 
void init (int size)
 
- Protected Attributes inherited from GenericVector< IntKDPair >
int32_t size_used_
 
int32_t size_reserved_
 
IntKDPair * data_
 
std::function< void(IntKDPair)> clear_cb_
 
std::function< bool(const IntKDPair &, const IntKDPair &)> compare_cb_
 
- Static Protected Attributes inherited from GenericVector< IntKDPair >
static const int kDefaultVectorSize
 

Detailed Description

Definition at line 182 of file kdpair.h.


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