tesseract v5.3.3.20231005
tesseract::CHAR_DESC_STRUCT Struct Reference

#include <featdefs.h>

Public Member Functions

 CHAR_DESC_STRUCT (const FEATURE_DEFS_STRUCT &FeatureDefs)
 
 ~CHAR_DESC_STRUCT ()
 

Public Attributes

uint32_t NumFeatureSets
 
std::array< FEATURE_SET_STRUCT *, NUM_FEATURE_TYPESFeatureSets
 

Detailed Description

Definition at line 47 of file featdefs.h.

Constructor & Destructor Documentation

◆ CHAR_DESC_STRUCT()

tesseract::CHAR_DESC_STRUCT::CHAR_DESC_STRUCT ( const FEATURE_DEFS_STRUCT FeatureDefs)
inline

Allocate a new character description, initialize its feature sets to be empty, and return it.

Definition at line 50 of file featdefs.h.

50 {
51 NumFeatureSets = FeatureDefs.NumFeatureTypes;
52 }

◆ ~CHAR_DESC_STRUCT()

tesseract::CHAR_DESC_STRUCT::~CHAR_DESC_STRUCT ( )
inline

Release the memory consumed by the specified character description and all of the features in that description.

Definition at line 56 of file featdefs.h.

56 {
57 for (size_t i = 0; i < NumFeatureSets; i++) {
58 delete FeatureSets[i];
59 }
60 }
std::array< FEATURE_SET_STRUCT *, NUM_FEATURE_TYPES > FeatureSets
Definition: featdefs.h:63

Member Data Documentation

◆ FeatureSets

std::array<FEATURE_SET_STRUCT *, NUM_FEATURE_TYPES> tesseract::CHAR_DESC_STRUCT::FeatureSets

Definition at line 63 of file featdefs.h.

◆ NumFeatureSets

uint32_t tesseract::CHAR_DESC_STRUCT::NumFeatureSets

Definition at line 62 of file featdefs.h.


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