_Hash Struct Reference

A specialised hash for computing frequency distributions over tuples of lexicon IDs. More...

Data Fields


Detailed Description

A specialised hash for computing frequency distributions over tuples of lexicon IDs.


Field Documentation

Attribute* att[MAX_N]

list of the N attributes corresponding to the keys of the hash

Referenced by add_key(), and main().

int buckets

no.

of buckets in hash table

Referenced by hash_find(), main(), and parse_options().

int constraint_ok[MAX_N]

whether constraint is satisfied (initialised at start_cpos, reset at end_cpos)

Referenced by add_key(), and main().

int current_struc[MAX_N]

number of current or next structure

Referenced by add_key(), and main().

int end_cpos[MAX_N]

end of this structure (cpos)

Referenced by add_key(), and main().

int* frequency

pre-computed integer values for the attribute keys

Referenced by main().

Referenced by main().

int* id_list[MAX_N]

optional regex constraint (stored as a list of matching lexicon IDs)

Referenced by add_key(), and main().

int id_list_size[MAX_N]

size of this list

Referenced by add_key(), and main().

int is_constraint[MAX_N]

list of flags marking constraint keys ("?...")

Referenced by add_key(), and main().

int is_structural[MAX_N]

list of flags identifying s-attributes (all others are p-attributes)

Referenced by add_key(), and main().

int K

number of non-constraint keys, i.e.

the actual hash table stores K-tuples

Referenced by add_key(), hash_add(), hash_find(), and main().

largest offset of all keys (to avoid scanning past end of corpus

Referenced by add_key(), and main().

int N

number of keys, including constraint-only keys

Referenced by add_key(), and main().

int offset[MAX_N]

list of optional corpus position offsets

Referenced by add_key(), and main().

CL_Regex regex[MAX_N]

optional regex constraint (compiled regular expression)

Referenced by add_key(), and main().

char* source_base[MAX_N]

base pointers to compute virtual IDs (= offsets) from annotation strings

Referenced by add_key(), and main().

int start_cpos[MAX_N]

start of this structure (cpos)

Referenced by add_key(), and main().

array of HashEntry pointers == buckets (initialised to NULL, i.e.

empty buckets)

Referenced by hash_add(), hash_find(), and main().

int virtual_id[MAX_N]

virtual ID of a region's annotation string (constant within region)

Referenced by main().


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

Generated on Sun Feb 28 18:08:04 2010 for CWB by  doxygen 1.6.1