|
void | clear () |
|
bool | add_unique (const DawgPosition &new_pos, bool debug, const char *debug_msg) |
|
| GenericVector () |
|
| GenericVector (int size, const DawgPosition &init_val) |
|
| GenericVector (const GenericVector &other) |
|
GenericVector< DawgPosition > & | operator+= (const GenericVector &other) |
|
void | operator+= (const DawgPosition &t) |
|
GenericVector< DawgPosition > & | operator= (const GenericVector &other) |
|
| ~GenericVector () |
|
void | reserve (int size) |
|
void | double_the_size () |
|
void | init_to_size (int size, const DawgPosition &t) |
|
void | resize_no_init (int size) |
|
int | size () const |
|
size_t | unsigned_size () const |
|
int | size_reserved () const |
|
bool | empty () const |
|
DawgPosition & | get (int index) const |
|
DawgPosition & | back () const |
|
DawgPosition & | operator[] (int index) const |
|
DawgPosition | pop_back () |
|
int | get_index (const DawgPosition &object) const |
|
bool | contains (const DawgPosition &object) const |
|
DawgPosition | contains_index (int index) const |
|
int | push_back (DawgPosition object) |
|
int | push_back_new (const DawgPosition &object) |
|
int | push_front (const DawgPosition &object) |
|
void | set (const DawgPosition &t, int index) |
|
void | insert (const DawgPosition &t, int index) |
|
void | remove (int index) |
|
void | truncate (int size) |
|
void | set_clear_callback (std::function< void(DawgPosition)> cb) |
|
void | set_compare_callback (std::function< bool(const DawgPosition &, const DawgPosition &)> cb) |
|
void | clear () |
|
void | delete_data_pointers () |
|
void | move (GenericVector< DawgPosition > *from) |
|
bool | write (FILE *f, std::function< bool(FILE *, const DawgPosition &)> cb) const |
|
bool | read (tesseract::TFile *f, std::function< bool(tesseract::TFile *, DawgPosition *)> 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 DawgPosition &target) const |
|
int | binary_search (const DawgPosition &target) const |
|
void | compact_sorted () |
|
int | choose_nth_item (int target_index) |
|
void | swap (int index1, int index2) |
|
bool | WithinBounds (const DawgPosition &rangemin, const DawgPosition &rangemax) const |
|
Definition at line 373 of file dawg.h.