#include <AncodePattern.h>
CAncodePattern::CAncodePattern | ( | const CAgramtab * | pGramTab | ) |
void CAncodePattern::ResetFlags | ( | ) | [private] |
References m_bUnkGramcodes, m_iGrammems, m_iPoses, and m_TypeGrammems.
Referenced by CAncodePattern(), and InitAncodePattern().
const CAgramtab * CAncodePattern::GetGramTab | ( | ) | const |
References m_pGramTab.
Referenced by DeleteAncodesByGrammemIfCan(), CLemWord::GetDebugString(), GetGrammemsByAncodes(), GetPartOfSpeechStr(), CHomonym::HasSetOfGrammemsExact(), InitAncodePattern(), CHomonym::IsLeftNounModifier(), CHomonym::IsMorphNoun(), CHomonym::IsSynNoun(), and ModifyGrammems().
void CAncodePattern::CopyAncodePattern | ( | const CAncodePattern & | X | ) |
References m_CommonGramCode, m_GramCodes, m_iGrammems, m_iPoses, m_LemSign, m_pGramTab, m_SimplePrepNos, and m_TypeGrammems.
bool CAncodePattern::HasGrammem | ( | BYTE | gram | ) | const |
References _QM, m_iGrammems, and m_TypeGrammems.
Referenced by CLemWord::GetHomonymByGrammem(), CLemWord::GetHomonymByPOSandGrammem(), and CLemWord::GetHomonymByPosesandGrammem().
bool CAncodePattern::HasPos | ( | BYTE | pos | ) | const |
References m_iPoses.
Referenced by CLemWord::GetHomonymByPOS(), CLemWord::GetHomonymByPOSandGrammem(), GetPartOfSpeechStr(), and CLemWord::KillHomonymOfPartOfSpeech().
string CAncodePattern::GetGrammemsByAncodes | ( | ) | const |
References CAgramtab::GetGrammems(), GetGramTab(), CAgramtab::GrammemsToStr(), and m_GramCodes.
Referenced by CHomonym::GetGrammemsStr().
bool CAncodePattern::ModifyGrammems | ( | QWORD | Grammems, | |
size_t | Poses = 0xffffffff | |||
) |
References ErrorMessage(), Format(), CAgramtab::GetGrammems(), GetGramTab(), CAgramtab::GetPartOfSpeech(), m_GramCodes, m_iGrammems, and m_iPoses.
bool CAncodePattern::InitAncodePattern | ( | ) |
References ErrorMessage(), Format(), CAgramtab::GetGrammems(), GetGramTab(), CAgramtab::GetPartOfSpeech(), m_bUnkGramcodes, m_CommonGramCode, m_GramCodes, m_iGrammems, m_iPoses, m_TypeGrammems, and ResetFlags().
Referenced by DeleteAncodesByGrammemIfCan(), CHomonym::SetHomonym(), and SetMorphUnknown().
void CAncodePattern::SetMorphUnknown | ( | ) |
Reimplemented in CHomonym.
References InitAncodePattern(), m_bUnkGramcodes, m_CommonGramCode, m_GramCodes, and m_LemSign.
bool CAncodePattern::DeleteAncodesByGrammemIfCan | ( | BYTE | Grammem | ) |
References _QM, CAgramtab::GetGrammems(), GetGramTab(), Grammems, InitAncodePattern(), and m_GramCodes.
string CAncodePattern::GetPartOfSpeechStr | ( | ) | const |
References GetGramTab(), CAgramtab::GetPartOfSpeechStr(), and HasPos().
const CAgramtab* CAncodePattern::m_pGramTab [private] |
Referenced by CopyAncodePattern(), and GetGramTab().
Referenced by CopyAncodePattern(), HasGrammem(), InitAncodePattern(), and ResetFlags().
string CAncodePattern::m_GramCodes |
size_t CAncodePattern::m_iPoses |
Referenced by InitAncodePattern(), ResetFlags(), and SetMorphUnknown().
vector<int> CAncodePattern::m_SimplePrepNos |
Referenced by CopyAncodePattern().