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

TBLOBnewblob ()
TBLOBoldblob (TBLOB *)
TESSLINEnewoutline ()
void oldoutline (TESSLINE *)
EDGEPTnewedgept ()
EDGEPToldedgept (EDGEPT *)
TWERDnewword ()
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()                                                                                    /*returns a new type*/\
{\
        return new type;\
}
#define NUM_DATA_TYPES   20
#define oldstructure ( name,
type,
nextfree,
stringtype,
usecount   ) 
Value:
\
type *name(type* deadelement)\
{\
        type                    *returnelement;                         /*return next ptr*/\
\
        returnelement=deadelement->next;                                        /*return link*/\
        delete deadelement;  \
        return returnelement;\
}

Function Documentation

void free_cell ( LIST   ) 
LIST new_cell (  ) 
TBLOB* newblob (  ) 
EDGEPT* newedgept (  ) 
TESSLINE* newoutline (  ) 
TWERD* newword (  ) 
TBLOB* oldblob ( TBLOB  ) 
EDGEPT* oldedgept ( EDGEPT  ) 
void oldoutline ( TESSLINE  ) 
void oldword ( TWERD  ) 

Variable Documentation

Generated on Sun Jul 18 17:10:50 2010 for Tesseract by  doxygen 1.6.3