tesseract-doxygen/wordrec/tally.h File Reference

#include <stdio.h>

Go to the source code of this file.

Classes

struct  _TALLY_

Defines

#define inc_tally_bucket(t, i)
#define iterate_tally(t, i)   for (i=0; i<t->num_buckets; i++)
#define tally_entry(t, i)   (t->buckets[i])

Typedefs

typedef struct _TALLY_TALLY

Functions

TALLY new_tally (int num_buckets)
void print_tally (FILE *file, const char *string, TALLY t)

Define Documentation

#define inc_tally_bucket ( t,
 ) 
Value:
(t->count++,                \
        ((i < t->num_buckets) ?    \
        (t->buckets[i]++) :       \
        (t->buckets[t->num_buckets-1]++)))
#define iterate_tally ( t,
 )     for (i=0; i<t->num_buckets; i++)
#define tally_entry ( t,
 )     (t->buckets[i])

Typedef Documentation

typedef struct _TALLY_ * TALLY

Function Documentation

TALLY new_tally ( int  num_buckets  ) 
void print_tally ( FILE *  file,
const char *  string,
TALLY  t 
)
Generated on Sun Jul 18 17:10:52 2010 for Tesseract by  doxygen 1.6.3