Tesseract
3.02
|
Go to the source code of this file.
Classes | |
class | CLIST_LINK |
class | CLIST |
class | CLIST_ITERATOR |
Defines | |
#define | QUOTE_IT(parm) #parm |
#define | CLISTIZEH_A(CLASSNAME) |
#define | CLISTIZEH_B(CLASSNAME) |
#define | CLISTIZEH_C(CLASSNAME) |
#define | CLISTIZEH(CLASSNAME) |
#define | CLISTIZE(CLASSNAME) |
#define CLISTIZE | ( | CLASSNAME | ) |
\ /*********************************************************************** \ * CLASSNAME##_c1_zapper \ * \ * A function which can delete a CLASSNAME element. This is passed to the \ * generic deep_clear list member function so that when a list is cleared the \ * elements on the list are properly destroyed from the base class, even \ * though we dont use a virtual destructor function. \ **********************************************************************/ \ \ DLLSYM void CLASSNAME##_c1_zapper( /*delete a link*/ \ void* link) /*link to delete*/ \ { \ delete (CLASSNAME *) link; \ } \
#define CLISTIZEH | ( | CLASSNAME | ) |
\ CLISTIZEH_A( CLASSNAME ) \ \ CLISTIZEH_B( CLASSNAME ) \ \ CLISTIZEH_C( CLASSNAME )
#define CLISTIZEH_A | ( | CLASSNAME | ) |
#define CLISTIZEH_B | ( | CLASSNAME | ) |
\ /*********************************************************************** \ * CLASS - CLASSNAME##_CLIST \ * \ * List class for class CLASSNAME \ * \ **********************************************************************/ \ \ class DLLSYM CLASSNAME##_CLIST : public CLIST \ { \ public: \ CLASSNAME##_CLIST():CLIST() {} \ /* constructor */ \ \ CLASSNAME##_CLIST( /* dont construct */ \ const CLASSNAME##_CLIST&) /*by initial assign*/ \ { DONT_CONSTRUCT_LIST_BY_COPY.error( QUOTE_IT( CLASSNAME##_CLIST ), \ ABORT, NULL ); } \ \ void deep_clear() /* delete elements */ \ { CLIST::internal_deep_clear( &CLASSNAME##_c1_zapper ); } \ \ void operator=( /* prevent assign */ \ const CLASSNAME##_CLIST&) \ { DONT_ASSIGN_LISTS.error( QUOTE_IT( CLASSNAME##_CLIST ), \ ABORT, NULL ); }