ddc
Public Member Functions | Public Attributes | List of all members
CGerGramTab Class Reference

#include <GerGramTab.h>

Inheritance diagram for CGerGramTab:
Inheritance graph
[legend]
Collaboration diagram for CGerGramTab:
Collaboration graph
[legend]

Public Member Functions

 CGerGramTab ()
 
 ~CGerGramTab ()
 
BYTE GetPartOfSpeechesCount () const
 
const char * GetPartOfSpeechStr (BYTE i) const
 
size_t GetGrammemsCount () const
 
const char * GetGrammemStr (size_t i) const
 
size_t GetMaxGrmCount () const
 
CAgramtabLine *& GetLine (size_t LineNo)
 
const CAgramtabLineGetLine (size_t LineNo) const
 
size_t s2i (const char *s) const
 
string i2s (WORD i) const
 
int GetGroupTypebyName (const char *TypeName) const
 
const char * GetRegistryString () const
 
long GetClauseTypeByName (const char *TypeName) const
 
const char * GetClauseNameByType (long type) const
 
bool GleicheGenderNumber (const char *gram_code1, const char *gram_code2) const
 
bool GleicheSubjectPredicate (const char *gram_code1, const char *gram_code2) const
 
const size_t GetClauseTypesCount () const
 
bool IsStrongClauseRoot (const DWORD Poses) const
 
bool is_month (const char *lemma) const
 
bool is_small_number (const char *lemma) const
 
bool IsMorphNoun (size_t Poses) const
 
bool is_morph_adj (size_t poses) const
 
bool is_morph_participle (size_t poses) const
 
bool is_morph_pronoun (size_t poses) const
 
bool is_morph_pronoun_adjective (size_t poses) const
 
bool is_left_noun_modifier (size_t poses, QWORD grammems) const
 
bool is_numeral (size_t poses) const
 
bool is_verb_form (size_t poses) const
 
bool is_infinitive (size_t poses) const
 
bool is_morph_predk (size_t poses) const
 
bool is_morph_adv (size_t poses) const
 
bool is_morph_personal_pronoun (size_t poses, QWORD grammems) const
 
bool is_morph_article (size_t poses) const
 
bool IsSimpleParticle (const char *lemma, size_t poses) const
 
bool IsSynNoun (size_t Poses, const char *Lemma) const
 
bool IsStandardParamAbbr (const char *WordStrUpper) const
 
bool GleicheCase (const char *gram_code_noun, const char *gram_code_adj) const
 
bool GleicheCaseNumber (const char *gram_code1, const char *gram_code2) const
 
QWORD GleicheGenderNumberCase (const char *common_gram_code_noun, const char *gram_code_noun, const char *gram_code_adj) const
 
- Public Member Functions inherited from CAgramtab
 CAgramtab ()
 
virtual ~CAgramtab ()
 
virtual bool ProcessPOSAndGrammems (const char *tab_str, BYTE &PartOfSpeech, QWORD &grammems) const
 
bool LoadFromFile (const char *filename)
 
string RegistryFilename ()
 
bool LoadFromRegistry ()
 
bool LoadFromRegistryAndCheck ()
 
int AreEqualPartOfSpeech (char *grm1, char *grm2)
 
bool ProcessPOSAndGrammemsIfCan (const char *tab_str, BYTE *PartOfSpeech, QWORD *grammems) const
 
char * grammems_to_str (QWORD grammems, char *out_buf) const
 
bool FindGrammems (const char *gram_codes, QWORD grammems) const
 
bool GetGramCodeByGrammemsAndPartofSpeechIfCan (BYTE Pos, QWORD grammems, string &gramcodes) const
 
bool GetPartOfSpeechAndGrammems (const BYTE *AnCodes, DWORD &Poses, QWORD &Grammems) const
 
string GrammemsToStr (QWORD grammems) const
 
string GetTabStringByGramCode (const char *gram_code) const
 
BYTE GetPartOfSpeech (const char *gram_code) const
 
QWORD GetAllGrammems (const char *gram_code) const
 
size_t GetSourceLineNo (const char *gram_code) const
 
QWORD GetAllGrammemsThatContains (const char *gram_code) const
 
bool GetGrammems (const char *gram_code, QWORD &grammems) const
 
BYTE GetFirstPartOfSpeech (const DWORD poses) const
 
string GetAllPossibleAncodes (BYTE pos, QWORD grammems) const
 
QWORD Gleiche (GrammemCompare CompareFunc, const char *gram_codes1, const char *gram_codes2) const
 
string GleicheAncode1 (GrammemCompare CompareFunc, const char *gram_codes1, const char *gram_codes2) const
 

Public Attributes

CAgramtabLineLines [gMaxGrmCount]
 
- Public Attributes inherited from CAgramtab
bool m_bInited
 

Constructor & Destructor Documentation

◆ CGerGramTab()

CGerGramTab::CGerGramTab ( )

References GetLine(), and GetMaxGrmCount().

Here is the call graph for this function:

◆ ~CGerGramTab()

CGerGramTab::~CGerGramTab ( )

References GetLine(), and GetMaxGrmCount().

Here is the call graph for this function:

Member Function Documentation

◆ GetPartOfSpeechesCount()

BYTE CGerGramTab::GetPartOfSpeechesCount ( ) const
inlinevirtual

Implements CAgramtab.

References gPartOfSpeechesCount.

◆ GetPartOfSpeechStr()

const char* CGerGramTab::GetPartOfSpeechStr ( BYTE  i) const
inlinevirtual

Implements CAgramtab.

◆ GetGrammemsCount()

size_t CGerGramTab::GetGrammemsCount ( ) const
inlinevirtual

Implements CAgramtab.

References gGrammemsCount.

◆ GetGrammemStr()

const char* CGerGramTab::GetGrammemStr ( size_t  i) const
inlinevirtual

Implements CAgramtab.

◆ GetMaxGrmCount()

size_t CGerGramTab::GetMaxGrmCount ( ) const
inlinevirtual

Implements CAgramtab.

References gMaxGrmCount.

Referenced by CGerGramTab(), and ~CGerGramTab().

Here is the caller graph for this function:

◆ GetLine() [1/2]

CAgramtabLine*& CGerGramTab::GetLine ( size_t  LineNo)
inlinevirtual

Implements CAgramtab.

Referenced by CGerGramTab(), and ~CGerGramTab().

Here is the caller graph for this function:

◆ GetLine() [2/2]

const CAgramtabLine* CGerGramTab::GetLine ( size_t  LineNo) const
inlinevirtual

Implements CAgramtab.

◆ s2i()

size_t CGerGramTab::s2i ( const char *  s) const
inlinevirtual

Implements CAgramtab.

References gStartUp.

◆ i2s()

string CGerGramTab::i2s ( WORD  i) const
inlinevirtual

Implements CAgramtab.

References GetGroupTypebyName(), and gStartUp.

Here is the call graph for this function:

◆ GetGroupTypebyName()

int CGerGramTab::GetGroupTypebyName ( const char *  TypeName) const

Referenced by i2s().

Here is the caller graph for this function:

◆ GetRegistryString()

const char* CGerGramTab::GetRegistryString ( ) const
inlinevirtual

Implements CAgramtab.

References GetClauseNameByType(), GetClauseTypeByName(), GleicheGenderNumber(), and GleicheSubjectPredicate().

Here is the call graph for this function:

◆ GetClauseTypeByName()

long CGerGramTab::GetClauseTypeByName ( const char *  TypeName) const
virtual

Implements CAgramtab.

References gClauseTypes, and gClauseTypesCount.

Referenced by GetRegistryString().

Here is the caller graph for this function:

◆ GetClauseNameByType()

const char * CGerGramTab::GetClauseNameByType ( long  type) const
virtual

Implements CAgramtab.

References gClauseTypes, and gClauseTypesCount.

Referenced by GetRegistryString().

Here is the caller graph for this function:

◆ GleicheGenderNumber()

bool CGerGramTab::GleicheGenderNumber ( const char *  gram_code1,
const char *  gram_code2 
) const
virtual

Implements CAgramtab.

References GenderNumberGerman(), and CAgramtab::Gleiche().

Referenced by GetRegistryString().

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

◆ GleicheSubjectPredicate()

bool CGerGramTab::GleicheSubjectPredicate ( const char *  gram_code1,
const char *  gram_code2 
) const
virtual

Implements CAgramtab.

References CAgramtab::Gleiche(), and SubjectPredicateGerman().

Referenced by GetRegistryString().

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

◆ GetClauseTypesCount()

const size_t CGerGramTab::GetClauseTypesCount ( ) const
inlinevirtual

◆ IsStrongClauseRoot()

bool CGerGramTab::IsStrongClauseRoot ( const DWORD  Poses) const
virtual

Implements CAgramtab.

References gVER.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_month()

bool CGerGramTab::is_month ( const char *  lemma) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_small_number()

bool CGerGramTab::is_small_number ( const char *  lemma) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ IsMorphNoun()

bool CGerGramTab::IsMorphNoun ( size_t  Poses) const
virtual

Implements CAgramtab.

References gEIG, and gSUB.

Referenced by GetClauseTypesCount(), and IsSynNoun().

Here is the caller graph for this function:

◆ is_morph_adj()

bool CGerGramTab::is_morph_adj ( size_t  poses) const
virtual

Implements CAgramtab.

References gADJ.

Referenced by GetClauseTypesCount(), and is_left_noun_modifier().

Here is the caller graph for this function:

◆ is_morph_participle()

bool CGerGramTab::is_morph_participle ( size_t  poses) const
virtual

Implements CAgramtab.

References gPA1, and gPA2.

Referenced by GetClauseTypesCount(), and is_verb_form().

Here is the caller graph for this function:

◆ is_morph_pronoun()

bool CGerGramTab::is_morph_pronoun ( size_t  poses) const
virtual

Implements CAgramtab.

References gPRONOMEN.

Referenced by GetClauseTypesCount(), and IsSynNoun().

Here is the caller graph for this function:

◆ is_morph_pronoun_adjective()

bool CGerGramTab::is_morph_pronoun_adjective ( size_t  poses) const
virtual

Implements CAgramtab.

References gPRO_BEG.

Referenced by GetClauseTypesCount(), and is_left_noun_modifier().

Here is the caller graph for this function:

◆ is_left_noun_modifier()

bool CGerGramTab::is_left_noun_modifier ( size_t  poses,
QWORD  grammems 
) const
virtual

Implements CAgramtab.

References gAllCases, gAllNumbers, gPA1, gPA2, gZAL, is_morph_adj(), and is_morph_pronoun_adjective().

Referenced by GetClauseTypesCount().

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

◆ is_numeral()

bool CGerGramTab::is_numeral ( size_t  poses) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_verb_form()

bool CGerGramTab::is_verb_form ( size_t  poses) const
virtual

Implements CAgramtab.

References gVER, and is_morph_participle().

Referenced by GetClauseTypesCount().

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

◆ is_infinitive()

bool CGerGramTab::is_infinitive ( size_t  poses) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_morph_predk()

bool CGerGramTab::is_morph_predk ( size_t  poses) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_morph_adv()

bool CGerGramTab::is_morph_adv ( size_t  poses) const
virtual

Implements CAgramtab.

References gADV.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_morph_personal_pronoun()

bool CGerGramTab::is_morph_personal_pronoun ( size_t  poses,
QWORD  grammems 
) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ is_morph_article()

bool CGerGramTab::is_morph_article ( size_t  poses) const
virtual

Implements CAgramtab.

References gART.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ IsSimpleParticle()

bool CGerGramTab::IsSimpleParticle ( const char *  lemma,
size_t  poses 
) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ IsSynNoun()

bool CGerGramTab::IsSynNoun ( size_t  Poses,
const char *  Lemma 
) const
virtual

Implements CAgramtab.

References is_morph_pronoun(), and IsMorphNoun().

Referenced by GetClauseTypesCount().

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

◆ IsStandardParamAbbr()

bool CGerGramTab::IsStandardParamAbbr ( const char *  WordStrUpper) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ GleicheCase()

bool CGerGramTab::GleicheCase ( const char *  gram_code_noun,
const char *  gram_code_adj 
) const
virtual

Implements CAgramtab.

References CAgramtab::Gleiche(), and GleicheCasesGerman().

Referenced by GetClauseTypesCount().

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

◆ GleicheCaseNumber()

bool CGerGramTab::GleicheCaseNumber ( const char *  gram_code1,
const char *  gram_code2 
) const
virtual

Implements CAgramtab.

Referenced by GetClauseTypesCount().

Here is the caller graph for this function:

◆ GleicheGenderNumberCase()

QWORD CGerGramTab::GleicheGenderNumberCase ( const char *  common_gram_code_noun,
const char *  gram_code_noun,
const char *  gram_code_adj 
) const
virtual

Implements CAgramtab.

References GenderNumberCaseGerman(), and CAgramtab::Gleiche().

Referenced by GetClauseTypesCount().

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

Member Data Documentation

◆ Lines

CAgramtabLine* CGerGramTab::Lines[gMaxGrmCount]

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