All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tesseract::DawgCache Class Reference

#include <dawg_cache.h>

Public Member Functions

DawgGetSquishedDawg (const STRING &lang, const char *data_file_name, TessdataType tessdata_dawg_type, int debug_level)
 
bool FreeDawg (Dawg *dawg)
 
void DeleteUnusedDawgs ()
 

Detailed Description

Definition at line 30 of file dawg_cache.h.

Member Function Documentation

void tesseract::DawgCache::DeleteUnusedDawgs ( )
inline

Definition at line 46 of file dawg_cache.h.

46  {
47  dawgs_.DeleteUnusedObjects();
48  }
bool tesseract::DawgCache::FreeDawg ( Dawg dawg)
inline

Definition at line 41 of file dawg_cache.h.

41  {
42  return dawgs_.Free(dawg);
43  }
Dawg * tesseract::DawgCache::GetSquishedDawg ( const STRING lang,
const char *  data_file_name,
TessdataType  tessdata_dawg_type,
int  debug_level 
)

Definition at line 47 of file dawg_cache.cpp.

51  {
52  STRING data_id = data_file_name;
53  data_id += kTessdataFileSuffixes[tessdata_dawg_type];
54  DawgLoader loader(lang, data_file_name, tessdata_dawg_type, debug_level);
55  return dawgs_.Get(data_id, NewTessCallback(&loader, &DawgLoader::Load));
56 }
_ConstTessMemberResultCallback_0_0< true, R, T1 >::base * NewTessCallback(const T1 *obj, R(T2::*member)() const)
Definition: tesscallback.h:106
Definition: strngs.h:44

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