tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::KDVector Class Reference

#include <kdpair.h>

Inheritance diagram for tesseract::KDVector:
Collaboration diagram for tesseract::KDVector:

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
 
int length () 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 (TessCallback1< IntKDPair > *cb)
 
void set_compare_callback (TessResultCallback2< bool, IntKDPair const &, IntKDPair const & > *cb)
 
void clear ()
 
void delete_data_pointers ()
 
void move (GenericVector< IntKDPair > *from)
 
bool write (FILE *f, TessResultCallback2< bool, FILE *, IntKDPair const & > *cb) const
 
bool read (tesseract::TFile *f, TessResultCallback2< 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 ()
 
void compact (TessResultCallback1< bool, int > *delete_cb)
 
IntKDPair dot_product (const GenericVector< IntKDPair > &other) const
 
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_
 
TessCallback1< IntKDPair > * clear_cb_
 
TessResultCallback2< bool, IntKDPair const &, IntKDPair const &> * compare_cb_
 
- Static Protected Attributes inherited from GenericVector< IntKDPair >
static const int kDefaultVectorSize
 

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