Public Member Functions |
| ~DawgInfoVector () |
| Overload destructor, since clear() does not delete data_[] any more.
|
void | clear () |
bool | add_unique (const DawgInfo &new_info, bool debug, const char *debug_msg) |
| GenericVector () |
| GenericVector (int size) |
| GenericVector (const GenericVector &other) |
GenericVector< DawgInfo > & | operator+= (const GenericVector &other) |
void | operator+= (DawgInfot) |
GenericVector< DawgInfo > & | operator= (const GenericVector &other) |
virtual | ~GenericVector () |
void | reserve (int size) |
void | double_the_size () |
void | init_to_size (int size, DawgInfot) |
int | size () const |
int | length () const |
bool | empty () const |
DawgInfo & | get (int index) const |
DawgInfo & | back () const |
DawgInfo & | operator[] (int index) const |
int | get_index (DawgInfoobject) const |
bool | contains (DawgInfoobject) const |
DawgInfo | contains_index (int index) const |
int | push_back (DawgInfoobject) |
int | push_back_new (DawgInfoobject) |
int | push_front (DawgInfoobject) |
void | set (DawgInfot, int index) |
void | insert (DawgInfot, int index) |
virtual void | remove (int index) |
virtual void | truncate (int size) |
void | set_clear_callback (TessCallback1< DawgInfo > *cb) |
void | set_compare_callback (TessResultCallback2< bool, DawgInfoconst &, DawgInfoconst & > *cb) |
void | delete_data_pointers () |
void | move (GenericVector< DawgInfo > *from) |
bool | write (FILE *f, TessResultCallback2< bool, FILE *, DawgInfoconst & > *cb) const |
bool | read (FILE *f, TessResultCallback3< bool, FILE *, DawgInfo *, bool > *cb, bool swap) |
virtual bool | Serialize (FILE *fp) const |
virtual bool | DeSerialize (bool swap, FILE *fp) |
bool | SerializeClasses (FILE *fp) const |
bool | DeSerializeClasses (bool swap, FILE *fp) |
void | sort () |
void | sort (int(*comparator)(const void *, const void *)) |
bool | bool_binary_search (const DawgInfo &target) const |
int | binary_search (const DawgInfo &target) const |
void | compact_sorted () |
void | compact (TessResultCallback1< bool, int > *delete_cb) |
DawgInfo | dot_product (const GenericVector< DawgInfo > &other) const |
Definition at line 314 of file dawg.h.