tesseract v5.3.3.20231005
tesseract::INT_TEMPLATES_STRUCT Struct Reference

#include <intproto.h>

Public Member Functions

 INT_TEMPLATES_STRUCT ()
 
 ~INT_TEMPLATES_STRUCT ()
 

Public Attributes

unsigned NumClasses
 
unsigned NumClassPruners
 
INT_CLASS_STRUCTClass [MAX_NUM_CLASSES]
 
CLASS_PRUNER_STRUCTClassPruners [MAX_NUM_CLASS_PRUNERS]
 

Detailed Description

Definition at line 106 of file intproto.h.

Constructor & Destructor Documentation

◆ INT_TEMPLATES_STRUCT()

tesseract::INT_TEMPLATES_STRUCT::INT_TEMPLATES_STRUCT ( )

This constructor allocates a new set of integer templates initialized to hold 0 classes.

Definition at line 603 of file intproto.cpp.

603 {
604 NumClasses = 0;
605 NumClassPruners = 0;
606
607 for (int i = 0; i < MAX_NUM_CLASSES; i++) {
608 ClassForClassId(this, i) = nullptr;
609 }
610}
#define MAX_NUM_CLASSES
Definition: matchdefs.h:31
#define ClassForClassId(T, c)
Definition: intproto.h:156

◆ ~INT_TEMPLATES_STRUCT()

tesseract::INT_TEMPLATES_STRUCT::~INT_TEMPLATES_STRUCT ( )

Definition at line 612 of file intproto.cpp.

612 {
613 for (unsigned i = 0; i < NumClasses; i++) {
614 delete Class[i];
615 }
616 for (unsigned i = 0; i < NumClassPruners; i++) {
617 delete ClassPruners[i];
618 }
619}
CLASS_PRUNER_STRUCT * ClassPruners[MAX_NUM_CLASS_PRUNERS]
Definition: intproto.h:112
INT_CLASS_STRUCT * Class[MAX_NUM_CLASSES]
Definition: intproto.h:111

Member Data Documentation

◆ Class

INT_CLASS_STRUCT* tesseract::INT_TEMPLATES_STRUCT::Class[MAX_NUM_CLASSES]

Definition at line 111 of file intproto.h.

◆ ClassPruners

CLASS_PRUNER_STRUCT* tesseract::INT_TEMPLATES_STRUCT::ClassPruners[MAX_NUM_CLASS_PRUNERS]

Definition at line 112 of file intproto.h.

◆ NumClasses

unsigned tesseract::INT_TEMPLATES_STRUCT::NumClasses

Definition at line 109 of file intproto.h.

◆ NumClassPruners

unsigned tesseract::INT_TEMPLATES_STRUCT::NumClassPruners

Definition at line 110 of file intproto.h.


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