ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ZGen::Engine::MutableAlphabet Class Referenceabstract

#include <alphabet.h>

Inheritance diagram for ZGen::Engine::MutableAlphabet:
ZGen::Engine::WordAlphabet

Public Member Functions

 MutableAlphabet ()
 
virtual int insert (const char *name)=0
 
virtual const char * decode (int id) const =0
 
virtual int encode (const char *name) const =0
 

Constructor & Destructor Documentation

ZGen::Engine::MutableAlphabet::MutableAlphabet ( )
inline

Member Function Documentation

virtual const char* ZGen::Engine::MutableAlphabet::decode ( int  id) const
pure virtual

Get the name of index from the alphabet.

Parameters
[in]idThe encoded index.
Returns
const char* The name string.

Implemented in ZGen::Engine::WordAlphabet.

virtual int ZGen::Engine::MutableAlphabet::encode ( const char *  name) const
pure virtual

Get the index of the name from the alphabet.

Parameters
[in]nameThe name string.
Returns
int The encoded index.

Implemented in ZGen::Engine::WordAlphabet.

virtual int ZGen::Engine::MutableAlphabet::insert ( const char *  name)
pure virtual

Insert the name into the alphabet.

Parameters
[in]nameThe name string.
Returns
int return 1 if the name is not in the alphabet, otherwise false.

Implemented in ZGen::Engine::WordAlphabet.


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