tesseract  5.0.0-alpha-619-ge9db
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 137 of file shapetable.h.

Constructor & Destructor Documentation

◆ ShapeQueueEntry() [1/2]

tesseract::ShapeQueueEntry::ShapeQueueEntry ( )
inline

Definition at line 138 of file shapetable.h.

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

◆ ShapeQueueEntry() [2/2]

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

Definition at line 139 of file shapetable.h.

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

Member Function Documentation

◆ operator<()

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

Definition at line 143 of file shapetable.h.

143  {
144  if (result.rating > other.result.rating) return true;
145  if (result.rating == other.result.rating)
146  return level > other.level;
147  return false;
148  }

Member Data Documentation

◆ level

int tesseract::ShapeQueueEntry::level

Definition at line 153 of file shapetable.h.

◆ result

ShapeRating tesseract::ShapeQueueEntry::result

Definition at line 151 of file shapetable.h.


The documentation for this struct was generated from the following file:
tesseract::ShapeRating::rating
float rating
Definition: shapetable.h:124
tesseract::ShapeQueueEntry::level
int level
Definition: shapetable.h:153
tesseract::ShapeQueueEntry::result
ShapeRating result
Definition: shapetable.h:151