SIS
Symmetric Index Structures
/Users/dbr/ma/src/bas/lml/alphabet.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Alphabet

Defines

#define NO_CODE   ((U16)(-1))
#define ALPHABET_FIRST_MARKER   ((UINT)(0x10000))
#define mAlphabetGetSize(alph)   ( (alph)->maxMarker - NO_CODE + (alph)->numberOfSymbols )
#define mAlphabetGetCode(alph, symbol)

Functions

AlphabetAlphabetInit ()
void AlphabetAdd (Alphabet *alph, const Automaton *aut)
void AlphabetFree (Alphabet *alph)
void AlphabetWrite (Alphabet *alph, FILE *fp)
AlphabetAlphabetRead (FILE *fp)

Define Documentation

#define ALPHABET_FIRST_MARKER   ((UINT)(0x10000))

Definition at line 5 of file alphabet.h.

Referenced by AlphabetInit(), AlphabetRead(), and AlphabetWrite().

#define mAlphabetGetCode (   alph,
  symbol 
)
Value:
( (symbol) < ALPHABET_FIRST_MARKER ? (alph)->symbolToCode[(symbol)] : \
( (symbol) > (alph)->maxMarker ? NO_CODE : ( (alph)->maxMarker - NO_CODE + (alph)->numberOfSymbols ) ) )

Definition at line 9 of file alphabet.h.

Referenced by CompressedAutomatonDelta().

#define mAlphabetGetSize (   alph)    ( (alph)->maxMarker - NO_CODE + (alph)->numberOfSymbols )

Definition at line 7 of file alphabet.h.

Referenced by TarjanTableInit().

#define NO_CODE   ((U16)(-1))

Definition at line 4 of file alphabet.h.

Referenced by AlphabetInit(), and CompressedAutomatonDelta().


Function Documentation

void AlphabetAdd ( Alphabet alph,
const Automaton *  aut 
)

Definition at line 38 of file alphabet.c.

Referenced by CompressedAutomatonAddTarjanTable().

void AlphabetFree ( Alphabet alph)

Definition at line 55 of file alphabet.c.

Referenced by CompressedAutomatonFree().

Alphabet* AlphabetInit ( )

Definition at line 3 of file alphabet.c.

Referenced by CompressedAutomatonAddTarjanTable().

Alphabet* AlphabetRead ( FILE *  fp)

Definition at line 86 of file alphabet.c.

Referenced by TarjanTableRead().

void AlphabetWrite ( Alphabet alph,
FILE *  fp 
)

Definition at line 60 of file alphabet.c.

Referenced by TarjanTableWrite().