tesseract  5.0.0
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 601 of file intproto.cpp.

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

◆ ~INT_TEMPLATES_STRUCT()

tesseract::INT_TEMPLATES_STRUCT::~INT_TEMPLATES_STRUCT ( )

Definition at line 610 of file intproto.cpp.

610  {
611  for (unsigned i = 0; i < NumClasses; i++) {
612  delete Class[i];
613  }
614  for (unsigned i = 0; i < NumClassPruners; i++) {
615  delete ClassPruners[i];
616  }
617 }
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: