SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Typedefs | Functions | Variables
cwr_count.c File Reference

Count events. More...

Data Structures

union  SprCwrCount
 
union  SprCwrCountPtr
 
struct  SprCwrChildInfo
 
struct  SprCwrCountNode
 
struct  SprCwrAllocBlock
 
struct  SprCwrFreeBlockInfo
 
struct  SprCwrCountFile
 
struct  SprCwrCountTree
 

Typedefs

typedef SprCwrCountNodeSprCwrCountNodePtr
 
typedef int(* _FuncPtr3_CWR_COUNT_ )(SprCwrCountTree *ctree, SprCwrCount *last_cnt, int *last_sam, va_list *args;int spr_cwr_count_tree_scan(SprCwrCountTree *count_tree, int match_len, _FuncPtr3_CWR_COUNT_ func),...)
 

Functions

void spr_cwr_count_tree_mem_print (SprStream *fd, const SprCwrCountTree *count_tree)
 
SprCwrCountTreespr_cwr_count_tree_mem_limit (SprCwrCountTree *count_tree, int memory_limit)
 
int spr_cwr_count_file_assign (SprCwrCountFile *count_file, const char *fname, unsigned int mode)
 
SprCwrCountTreespr_cwr_count_tree_free (SprCwrCountTree *count_tree, int content_only, SprMsgId *routine)
 
SprCwrCountTreespr_cwr_count_tree_alloc (SprCwrCountTree *count_tree, int depth, const SprDT *type)
 
SprCwrCountspr_cwr_count_read (SprCwrCountFile *count_file)
 
int spr_cwr_count_write (SprCwrCountFile *count_file, const SprCwrCount *count)
 
SprCwrCountspr_cwr_count_tree_step (SprCwrCountTree *count_tree)
 
SprCwrChildInfospr_cwr_count_tree_select (SprCwrCountTree *count_tree, int *class_seq, int match_depth, int create_missing)
 Find a sub tree in the count tree. More...
 
int spr_cwr_count_tree_mem_merge (SprCwrCountTree *count_tree)
 
SprCwrChildInfospr_cwr_count_tree_next (SprCwrCountNode *count_node, int class_id)
 
SprCwrChildInfospr_cwr_count_tree_Next (SprCwrCountNodePtr *count_node_ptr, int class_id, int final_node, SprCwrCountTree *count_tree)
 
SprCwrChildInfospr_cwr_count_tree_Next_ (SprCwrChildInfo *child, int class_id, int final_node, SprCwrCountTree *count_tree)
 
int spr_cwr_count_inc (SprCwrCountTree *count_tree)
 
int spr_cwr_count_tree_print (SprStream *dest, SprCwrCountTree *count_tree)
 Print the content of the count tree. More...
 

Variables

const SprCwrCountTree spr_cwr_empty_count_tree
 

Detailed Description

Count events.

Date
March 1996
Author
Kris Demuynck
Revision History:
27/01/97 - KD
Added support for multiple types.
10/03/97 - KD
Added (limited) support for tree's on disk.
08/04/97 - KD
Added support for variable length.