dict/choicearr.h File Reference

#include "tessarray.h"
#include "choices.h"

Go to the source code of this file.

Defines

Typedefs


Define Documentation

#define CHOICES_PER_LIST   40

Number of choices in each list

Definition at line 44 of file choicearr.h.

#define for_each_choice ( array,
index   )     array_loop (array, index)

Iterate through each of the possible choices.

Definition at line 63 of file choicearr.h.

Referenced by select_blob_to_split(), and UniformCertainties().

#define free_all_choices ( choices,
index   ) 

Value:

for_each_choice (choices, index) {                         \
   free_choices ((CHOICES) array_value (choices, index));  \
}                                                          \
array_free (choices)                                       \
Free an array of choices (deep free).

Definition at line 69 of file choicearr.h.

Referenced by rebuild_current_state().

#define free_choice_list ( choice_list   )     array_free (choice_list)

Free a list of choices.

Free the array structure but not each of the sublists of choices.

Definition at line 57 of file choicearr.h.

Referenced by permute_subword().

 
#define new_choice_list (  )     array_new (CHOICES_PER_LIST)

Return a new array structure that is a list of choices.

Each set of choices will be of type CHOICES.

Definition at line 81 of file choicearr.h.

Referenced by chop_word_main(), evaluate_chunks(), permute_subword(), and rebuild_current_state().


Typedef Documentation

CHOICES_LIST

Type of ARRAY, holds list of choices.

Definition at line 41 of file choicearr.h.


Generated on Wed Feb 28 19:49:22 2007 for Tesseract by  doxygen 1.5.1