ddc
Classes | Functions
CommonLib/GramInfo.h File Reference

Go to the source code of this file.

Classes

struct  CGramInfo
 CGramInfo represents one morphological pattern, for example "[SUB pl, sg]". More...
 
struct  CGramInfoAndGraphemUnitOffset
 

Functions

size_t get_size_in_bytes (const CGramInfo &i)
 
size_t save_to_bytes (const CGramInfo &i, BYTE *buf)
 
size_t restore_from_bytes (CGramInfo &i, const BYTE *buf)
 
size_t get_size_in_bytes (const CGramInfoAndGraphemUnitOffset &i)
 
size_t save_to_bytes (const CGramInfoAndGraphemUnitOffset &i, BYTE *buf)
 
size_t restore_from_bytes (CGramInfoAndGraphemUnitOffset &i, const BYTE *buf)
 

Function Documentation

◆ get_size_in_bytes() [1/2]

size_t get_size_in_bytes ( const CGramInfo i)
inline

References CGramInfo::m_Grammems, and CGramInfo::m_PartOfSpeechMask.

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 CGramInfo i,
BYTE buf 
)
inline

References get_size_in_bytes(), CGramInfo::m_Grammems, CGramInfo::m_Language, and CGramInfo::m_PartOfSpeechMask.

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 ( CGramInfo i,
const BYTE buf 
)
inline

References get_size_in_bytes(), CGramInfo::m_Grammems, CGramInfo::m_Language, and CGramInfo::m_PartOfSpeechMask.

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 CGramInfoAndGraphemUnitOffset i)
inline

◆ save_to_bytes() [2/2]

size_t save_to_bytes ( const CGramInfoAndGraphemUnitOffset i,
BYTE buf 
)
inline

◆ restore_from_bytes() [2/2]

size_t restore_from_bytes ( CGramInfoAndGraphemUnitOffset i,
const BYTE buf 
)
inline