ddc
Functions
MorphAutomat.cpp File Reference
#include "StdMorph.h"
#include "MorphAutomat.h"
#include "../CommonLib/bserialize.h"
Include dependency graph for MorphAutomat.cpp:

Functions

static int InitAlphabet (MorphLanguageEnum Language, int *pCode2Alphabet, int *pAlphabet2Code, size_t AnnotChar)
 
size_t get_size_in_bytes (const CMorphAutomNode &t)
 
size_t save_to_bytes (const CMorphAutomNode &t, BYTE *buf)
 
size_t restore_from_bytes (CMorphAutomNode &t, const BYTE *buf)
 
size_t get_size_in_bytes (const CMorphAutomRelation &t)
 
size_t save_to_bytes (const CMorphAutomRelation &t, BYTE *buf)
 
size_t restore_from_bytes (CMorphAutomRelation &t, const BYTE *buf)
 

Function Documentation

◆ InitAlphabet()

static int InitAlphabet ( MorphLanguageEnum  Language,
int *  pCode2Alphabet,
int *  pAlphabet2Code,
size_t  AnnotChar 
)
static

References ErrorMessage(), is_alpha(), is_upper_alpha(), MaxAlphabetSize, morphEnglish, morphGerman, and morphURL.

Referenced by CABCEncoder::CABCEncoder().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_size_in_bytes() [1/2]

size_t get_size_in_bytes ( const CMorphAutomNode t)
inline

References CMorphAutomNode::m_Data.

Referenced by get_size_in_bytes(), restore_from_bytes(), and save_to_bytes().

Here is the caller graph for this function:

◆ save_to_bytes() [1/2]

size_t save_to_bytes ( const CMorphAutomNode t,
BYTE buf 
)
inline

References get_size_in_bytes(), and CMorphAutomNode::m_Data.

Referenced by save_to_bytes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ restore_from_bytes() [1/2]

size_t restore_from_bytes ( CMorphAutomNode t,
const BYTE buf 
)
inline

References get_size_in_bytes(), and CMorphAutomNode::m_Data.

Referenced by restore_from_bytes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_size_in_bytes() [2/2]

size_t get_size_in_bytes ( const CMorphAutomRelation t)
inline

References get_size_in_bytes(), and CMorphAutomRelation::m_Data.

Here is the call graph for this function:

◆ save_to_bytes() [2/2]

size_t save_to_bytes ( const CMorphAutomRelation t,
BYTE buf 
)
inline

References get_size_in_bytes(), CMorphAutomRelation::m_Data, and save_to_bytes().

Here is the call graph for this function:

◆ restore_from_bytes() [2/2]

size_t restore_from_bytes ( CMorphAutomRelation t,
const BYTE buf 
)
inline

References get_size_in_bytes(), CMorphAutomRelation::m_Data, and restore_from_bytes().

Here is the call graph for this function: