tesseract v5.3.3.20231005
tesseract::ShapeQueueEntry Struct Reference

#include <shapetable.h>

Public Member Functions

 ShapeQueueEntry ()
 
 ShapeQueueEntry (const ShapeRating &rating, int level0)
 
bool operator< (const ShapeQueueEntry &other) const
 

Public Attributes

ShapeRating result
 
int level
 

Detailed Description

Definition at line 105 of file shapetable.h.

Constructor & Destructor Documentation

◆ ShapeQueueEntry() [1/2]

tesseract::ShapeQueueEntry::ShapeQueueEntry ( )
inline

Definition at line 106 of file shapetable.h.

106: result(ShapeRating(0, 0.0f)), level(0) {}

◆ ShapeQueueEntry() [2/2]

tesseract::ShapeQueueEntry::ShapeQueueEntry ( const ShapeRating rating,
int  level0 
)
inline

Definition at line 107 of file shapetable.h.

107: result(rating), level(level0) {}

Member Function Documentation

◆ operator<()

bool tesseract::ShapeQueueEntry::operator< ( const ShapeQueueEntry other) const
inline

Definition at line 110 of file shapetable.h.

110 {
111 if (result.rating > other.result.rating) {
112 return true;
113 }
114 if (result.rating == other.result.rating) {
115 return level > other.level;
116 }
117 return false;
118 }

Member Data Documentation

◆ level

int tesseract::ShapeQueueEntry::level

Definition at line 123 of file shapetable.h.

◆ result

ShapeRating tesseract::ShapeQueueEntry::result

Definition at line 121 of file shapetable.h.


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