tesseract-doxygen/cutil/structures.h File Reference
#include "tessclas.h"
#include "oldlist.h"
#include "freelist.h"
#include "danerror.h"
Go to the source code of this file.
Defines |
#define | NUM_DATA_TYPES 20 |
#define | makestructure(newfunc, old, print, type, nextfree, blocksize, typestring, usecount) |
#define | newstructure(name, type, nextfree, blocksize, errorstring, usecount) |
#define | oldstructure(name, type, nextfree, stringtype, usecount) |
Functions |
TBLOB * | newblob () |
TBLOB * | oldblob (TBLOB *) |
TESSLINE * | newoutline () |
void | oldoutline (TESSLINE *) |
EDGEPT * | newedgept () |
EDGEPT * | oldedgept (EDGEPT *) |
TWERD * | newword () |
void | oldword (TWERD *) |
LIST | new_cell () |
void | free_cell (LIST) |
Variables |
int | max_data_types |
void_void | memory_print_functions [NUM_DATA_TYPES] |
Define Documentation
#define makestructure |
( |
newfunc, |
|
|
old, |
|
|
print, |
|
|
type, |
|
|
nextfree, |
|
|
blocksize, |
|
|
typestring, |
|
|
usecount |
|
) |
|
Value:type *newfunc() \
{ \
return new type; \
} \
\
\
\
void old(type* deadelement) \
{ \
delete deadelement; \
} \
#define newstructure |
( |
name, |
|
|
type, |
|
|
nextfree, |
|
|
blocksize, |
|
|
errorstring, |
|
|
usecount |
|
) |
|
Value:type *name() \
{\
return new type;\
}
#define NUM_DATA_TYPES 20 |
#define oldstructure |
( |
name, |
|
|
type, |
|
|
nextfree, |
|
|
stringtype, |
|
|
usecount |
|
) |
|
Value:\
type *name(type* deadelement)\
{\
type *returnelement; \
\
returnelement=deadelement->next; \
delete deadelement; \
return returnelement;\
}
Function Documentation
Variable Documentation