tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
SORTED_FLOATS Class Reference

#include <sortflts.h>

Public Member Functions

 SORTED_FLOATS ()
 
SORTED_FLOATS::add

Add a new entry to the sorted list of floats.

void add (float value, int32_t key)
 
SORTED_FLOATS::remove

Remove an entry from the sorted list of floats.

void remove (int32_t key)
 
SORTED_FLOATS::operator[]

Return the floating point value of the given index into the list.

float operator[] (int32_t index)
 

Private Attributes

SORTED_FLOAT_LIST list
 
SORTED_FLOAT_IT it
 

Constructor & Destructor Documentation

◆ SORTED_FLOATS()

SORTED_FLOATS::SORTED_FLOATS ( )
inline

empty constructor

Member Function Documentation

◆ add()

void SORTED_FLOATS::add ( float  value,
int32_t  key 
)

add sample

Parameters
valuesample float
keyretrieval key

◆ operator[]()

float SORTED_FLOATS::operator[] ( int32_t  index)

index to list

Parameters
indexitem to get

◆ remove()

void SORTED_FLOATS::remove ( int32_t  key)

delete sample

Parameters
keykey to delete

Member Data Documentation

◆ it

SORTED_FLOAT_IT SORTED_FLOATS::it
private

◆ list

SORTED_FLOAT_LIST SORTED_FLOATS::list
private

The documentation for this class was generated from the following files: