tesseract  4.0.0-1-g2a2b
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 138 of file shapetable.h.

Constructor & Destructor Documentation

◆ ShapeQueueEntry() [1/2]

tesseract::ShapeQueueEntry::ShapeQueueEntry ( )
inline

Definition at line 139 of file shapetable.h.

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

◆ ShapeQueueEntry() [2/2]

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

Definition at line 140 of file shapetable.h.

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

Member Function Documentation

◆ operator<()

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

Definition at line 144 of file shapetable.h.

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

Member Data Documentation

◆ level

int tesseract::ShapeQueueEntry::level

Definition at line 154 of file shapetable.h.

◆ result

ShapeRating tesseract::ShapeQueueEntry::result

Definition at line 152 of file shapetable.h.


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