tesseract::DawgInfoVector Class Reference

#include <dawg.h>

Inheritance diagram for tesseract::DawgInfoVector:
GenericVector< DawgInfo >

List of all members.

Public Member Functions

 ~DawgInfoVector ()
 Overload destructor, since clear() does not delete data_[] any more.
void clear ()
bool add_unique (const DawgInfo &new_info, const char *debug_msg)
bool remove (const DawgInfo &info)

Constructor & Destructor Documentation

tesseract::DawgInfoVector::~DawgInfoVector (  )  [inline]

Overload destructor, since clear() does not delete data_[] any more.


Member Function Documentation

bool tesseract::DawgInfoVector::add_unique ( const DawgInfo new_info,
const char *  debug_msg 
) [inline]

Adds an entry for the given dawg_index with the given node to the vec. Returns false if the same entry already exists in the vector, true otherwise.

void tesseract::DawgInfoVector::clear (  )  [inline, virtual]

Overload clear() in order to avoid allocating/deallocating memory when clearing the vector and re-inserting entries into it later.

Reimplemented from GenericVector< DawgInfo >.

bool tesseract::DawgInfoVector::remove ( const DawgInfo info  )  [inline]

Removes an entry that equals to the given DawgInfo. This function assumes that the entries in the vector are unique. Returns true if an entry was found and removed.


The documentation for this class was generated from the following file:
Generated on Sun Jul 18 17:11:24 2010 for Tesseract by  doxygen 1.6.3