|
tesseract v5.3.3.20231005
|
#include <genericvector.h>
Public Member Functions | |
| GenericVector () | |
| GenericVector (const GenericVector &other) | |
| GenericVector< T > & | operator+= (const GenericVector &other) |
| GenericVector< T > & | operator= (const GenericVector &other) |
| ~GenericVector () | |
| void | reserve (int size) |
| void | double_the_size () |
| void | init_to_size (int size, const T &t) |
| void | resize (int size, const T &t) |
| void | resize_no_init (int size) |
| unsigned | size () const |
| size_t | unsigned_size () const |
| int | size_reserved () const |
| bool | empty () const |
| T & | at (int index) const |
| T & | back () const |
| T & | operator[] (int index) const |
| T | pop_back () |
| int | get_index (const T &object) const |
| int | push_back (T object) |
| void | operator+= (const T &t) |
| void | set (const T &t, int index) |
| void | insert (const T &t, int index) |
| void | remove (int index) |
| void | truncate (int size) |
| void | set_clear_callback (const std::function< void(T)> &cb) |
| void | clear () |
| void | delete_data_pointers () |
| void | move (GenericVector< T > *from) |
| bool | write (FILE *f, const std::function< bool(FILE *, const T &)> &cb) const |
| bool | read (TFile *f, const std::function< bool(TFile *, T *)> &cb) |
| bool | Serialize (FILE *fp) const |
| bool | Serialize (TFile *fp) const |
| bool | DeSerialize (bool swap, FILE *fp) |
| bool | DeSerialize (TFile *fp) |
| bool | SerializeClasses (FILE *fp) const |
| bool | DeSerializeClasses (TFile *fp) |
| void | reverse () |
| void | sort () |
| void | sort (int(*comparator)(const void *, const void *)) |
| void | swap (int index1, int index2) |
Protected Member Functions | |
| void | init (int size) |
Protected Attributes | |
| int32_t | size_used_ {} |
| int32_t | size_reserved_ {} |
| T * | data_ |
| std::function< void(T)> | clear_cb_ |
Static Protected Attributes | |
| static const int | kDefaultVectorSize = 4 |
Definition at line 39 of file genericvector.h.
|
inline |
Definition at line 41 of file genericvector.h.
|
inline |
Definition at line 46 of file genericvector.h.
| tesseract::GenericVector< T >::~GenericVector |
Definition at line 462 of file genericvector.h.
|
inline |
Definition at line 89 of file genericvector.h.
| T & tesseract::GenericVector< T >::back |
Definition at line 516 of file genericvector.h.
| void tesseract::GenericVector< T >::clear |
Definition at line 609 of file genericvector.h.
| void tesseract::GenericVector< T >::delete_data_pointers |
Definition at line 623 of file genericvector.h.
| bool tesseract::GenericVector< T >::DeSerialize | ( | bool | swap, |
| FILE * | fp | ||
| ) |
Definition at line 703 of file genericvector.h.
| bool tesseract::GenericVector< T >::DeSerialize | ( | TFile * | fp | ) |
Definition at line 729 of file genericvector.h.
| bool tesseract::GenericVector< T >::DeSerializeClasses | ( | TFile * | fp | ) |
Definition at line 767 of file genericvector.h.
| void tesseract::GenericVector< T >::double_the_size |
Definition at line 486 of file genericvector.h.
|
inline |
Definition at line 84 of file genericvector.h.
| int tesseract::GenericVector< T >::get_index | ( | const T & | object | ) | const |
Definition at line 563 of file genericvector.h.
|
protected |
Definition at line 446 of file genericvector.h.
| void tesseract::GenericVector< T >::init_to_size | ( | int | size, |
| const T & | t | ||
| ) |
| void tesseract::GenericVector< T >::insert | ( | const T & | t, |
| int | index | ||
| ) |
Definition at line 538 of file genericvector.h.
| void tesseract::GenericVector< T >::move | ( | GenericVector< T > * | from | ) |
Definition at line 785 of file genericvector.h.
| GenericVector< T > & tesseract::GenericVector< T >::operator+= | ( | const GenericVector< T > & | other | ) |
Definition at line 590 of file genericvector.h.
| void tesseract::GenericVector< T >::operator+= | ( | const T & | t | ) |
Definition at line 585 of file genericvector.h.
| GenericVector< T > & tesseract::GenericVector< T >::operator= | ( | const GenericVector< T > & | other | ) |
Definition at line 599 of file genericvector.h.
| T & tesseract::GenericVector< T >::operator[] | ( | int | index | ) | const |
Definition at line 510 of file genericvector.h.
| T tesseract::GenericVector< T >::pop_back |
Definition at line 522 of file genericvector.h.
| int tesseract::GenericVector< T >::push_back | ( | T | object | ) |
Definition at line 574 of file genericvector.h.
| bool tesseract::GenericVector< T >::read | ( | TFile * | f, |
| const std::function< bool(TFile *, T *)> & | cb | ||
| ) |
Definition at line 652 of file genericvector.h.
| void tesseract::GenericVector< T >::remove | ( | int | index | ) |
Definition at line 553 of file genericvector.h.
| void tesseract::GenericVector< T >::reserve | ( | int | size | ) |
Definition at line 469 of file genericvector.h.
| void tesseract::GenericVector< T >::resize | ( | int | size, |
| const T & | t | ||
| ) |
Definition at line 505 of file genericvector.h.
|
inline |
Definition at line 64 of file genericvector.h.
|
inline |
Definition at line 177 of file genericvector.h.
| bool tesseract::GenericVector< T >::Serialize | ( | FILE * | fp | ) | const |
Definition at line 678 of file genericvector.h.
| bool tesseract::GenericVector< T >::Serialize | ( | TFile * | fp | ) | const |
Definition at line 688 of file genericvector.h.
| bool tesseract::GenericVector< T >::SerializeClasses | ( | FILE * | fp | ) | const |
Definition at line 749 of file genericvector.h.
| void tesseract::GenericVector< T >::set | ( | const T & | t, |
| int | index | ||
| ) |
Definition at line 529 of file genericvector.h.
|
inline |
Definition at line 126 of file genericvector.h.
|
inline |
Definition at line 70 of file genericvector.h.
|
inline |
Definition at line 79 of file genericvector.h.
| void tesseract::GenericVector< T >::sort |
Definition at line 798 of file genericvector.h.
|
inline |
Definition at line 194 of file genericvector.h.
|
inline |
|
inline |
Definition at line 118 of file genericvector.h.
|
inline |
Definition at line 74 of file genericvector.h.
| bool tesseract::GenericVector< T >::write | ( | FILE * | f, |
| const std::function< bool(FILE *, const T &)> & | cb | ||
| ) | const |
Definition at line 630 of file genericvector.h.
|
protected |
Definition at line 228 of file genericvector.h.
|
protected |
Definition at line 227 of file genericvector.h.
|
staticprotected |
Definition at line 224 of file genericvector.h.
|
protected |
Definition at line 226 of file genericvector.h.
|
protected |
Definition at line 225 of file genericvector.h.