All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

tesseract::ShapeQueueEntry::ShapeQueueEntry ( )

Definition at line 139 of file shapetable.h.

139 : result(ShapeRating(0, 0.0f)), level(0) {}
tesseract::ShapeQueueEntry::ShapeQueueEntry ( const ShapeRating rating,
int  level0 

Definition at line 140 of file shapetable.h.

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

Member Function Documentation

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

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

int tesseract::ShapeQueueEntry::level

Definition at line 154 of file shapetable.h.

ShapeRating tesseract::ShapeQueueEntry::result

Definition at line 152 of file shapetable.h.

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