All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GenericVectorEqEq< T > Class Template Reference

#include <resultiterator.h>

Inheritance diagram for GenericVectorEqEq< T >:
GenericVector< T >

Public Member Functions

 GenericVectorEqEq ()
 
 GenericVectorEqEq (int size)
 
- Public Member Functions inherited from GenericVector< T >
 GenericVector ()
 
 GenericVector (int size, T init_val)
 
 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, T t)
 
void resize_no_init (int size)
 
int size () const
 
int size_reserved () const
 
int length () const
 
bool empty () const
 
T & get (int index) const
 
T & back () const
 
T & operator[] (int index) const
 
pop_back ()
 
int get_index (T object) const
 
bool contains (T object) const
 
contains_index (int index) const
 
int push_back (T object)
 
void operator+= (T t)
 
int push_back_new (T object)
 
int push_front (T object)
 
void set (T t, int index)
 
void insert (T t, int index)
 
void remove (int index)
 
void truncate (int size)
 
void set_clear_callback (TessCallback1< T > *cb)
 
void set_compare_callback (TessResultCallback2< bool, T const &, T const & > *cb)
 
void clear ()
 
void delete_data_pointers ()
 
void move (GenericVector< T > *from)
 
bool write (FILE *f, TessResultCallback2< bool, FILE *, T const & > *cb) const
 
bool read (FILE *f, TessResultCallback3< bool, FILE *, T *, bool > *cb, bool swap)
 
bool Serialize (FILE *fp) const
 
bool Serialize (tesseract::TFile *fp) const
 
bool DeSerialize (bool swap, FILE *fp)
 
bool DeSerialize (bool swap, tesseract::TFile *fp)
 
bool SerializeClasses (FILE *fp) const
 
bool SerializeClasses (tesseract::TFile *fp) const
 
bool DeSerializeClasses (bool swap, FILE *fp)
 
bool DeSerializeClasses (bool swap, tesseract::TFile *fp)
 
void reverse ()
 
void sort ()
 
void sort (int(*comparator)(const void *, const void *))
 
bool bool_binary_search (const T &target) const
 
int binary_search (const T &target) const
 
void compact_sorted ()
 
void compact (TessResultCallback1< bool, int > *delete_cb)
 
dot_product (const GenericVector< T > &other) const
 
int choose_nth_item (int target_index)
 
void swap (int index1, int index2)
 
bool WithinBounds (const T &rangemin, const T &rangemax) const
 

Additional Inherited Members

- Static Public Member Functions inherited from GenericVector< T >
static T * double_the_size_memcpy (int current_size, T *data)
 
- Protected Member Functions inherited from GenericVector< T >
int choose_nth_item (int target_index, int start, int end, unsigned int *seed)
 
void init (int size)
 
- Protected Attributes inherited from GenericVector< T >
inT32 size_used_
 
inT32 size_reserved_
 
T * data_
 
TessCallback1< T > * clear_cb_
 
TessResultCallback2< bool, T
const &, T const & > * 
compare_cb_
 
- Static Protected Attributes inherited from GenericVector< T >
static const int kDefaultVectorSize = 4
 

Detailed Description

template<typename T>
class GenericVectorEqEq< T >

Definition at line 29 of file resultiterator.h.

Constructor & Destructor Documentation

template<typename T>
GenericVectorEqEq< T >::GenericVectorEqEq ( )
inline

Definition at line 595 of file genericvector.h.

595  {
597  NewPermanentTessCallback(tesseract::cmp_eq<T>));
598  }
void set_compare_callback(TessResultCallback2< bool, T const &, T const & > *cb)
_ConstTessMemberResultCallback_0_0< false, R, T1 >::base * NewPermanentTessCallback(const T1 *obj, R(T2::*member)() const)
Definition: tesscallback.h:116
template<typename T>
GenericVectorEqEq< T >::GenericVectorEqEq ( int  size)
inline

Definition at line 599 of file genericvector.h.

601  NewPermanentTessCallback(tesseract::cmp_eq<T>));
602  }
int size() const
Definition: genericvector.h:72
void set_compare_callback(TessResultCallback2< bool, T const &, T const & > *cb)
_ConstTessMemberResultCallback_0_0< false, R, T1 >::base * NewPermanentTessCallback(const T1 *obj, R(T2::*member)() const)
Definition: tesscallback.h:116

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