Context algorithm
Semi-predictive context algorithm implementation
 All Data Structures Files Functions Variables Typedefs Macros Pages
see.h File Reference
#include "types.h"
#include "fsmTree.h"
#include "decoderTree.h"

Go to the source code of this file.

Functions

int getSeeStateEncoder (fsmTree_t tree, Uint allCount, Uint pos, Uint numMasked, const Uchar *text, Uint alphasize)
 Returns the contents of the SEE table for the encoder. More...
 
int getSeeStateDecoder (decoderTree_t tree, Uint allCount, Uint pos, Uint numMasked, const Uchar *text, Uint alphasize)
 Returns the contents of the SEE table for the encoder. More...
 
void updateSee (Uint state, BOOL escape, Uint alphasize)
 Updates the SEE table. More...
 
void initSee ()
 Initalizes the SEE table. More...
 

Variables

Uint See [1<< 14][2]
 SEE table structure. More...
 

Function Documentation

int getSeeStateDecoder ( decoderTree_t  tree,
Uint  allCount,
Uint  pos,
Uint  numMasked,
const Uchar text,
Uint  alphasize 
)

Returns the contents of the SEE table for the encoder.

Definition at line 82 of file see.c.

int getSeeStateEncoder ( fsmTree_t  tree,
Uint  allCount,
Uint  pos,
Uint  numMasked,
const Uchar text,
Uint  alphasize 
)

Returns the contents of the SEE table for the encoder.

Parameters
[in]treecurrent node of the tree
[in]allCounttotal number of symbols observed in this state
[in]posposition of the current character in the input text
[in]numMaskednumber of masked characters in the current state
[in]textinput text
[in]alphasizetext alphabet size
Returns

Definition at line 44 of file see.c.

void initSee ( )

Initalizes the SEE table.

Definition at line 139 of file see.c.

void updateSee ( Uint  state,
BOOL  escape,
Uint  alphasize 
)

Updates the SEE table.

Definition at line 120 of file see.c.

Variable Documentation

Uint See[1<< 14][2]

SEE table structure.

Definition at line 27 of file see.h.