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

#include <DwdsThesaurus.h>

Collaboration diagram for CDwdsThesaurus:
Collaboration graph
[legend]

Public Member Functions

bool LoadDwdsThesaurus ()
 
int FindHyperTerm (const string &s) const
 
void GetAllPathesWhichContainHyperTermNo (size_t HyperTermNo, DwordVector &sub_pathes) const
 
bool ReadPathFromString (const string &TextPath, vector< int > &HyperTermNos) const
 
void GetAllPathesWhichStartFromThisSequence (const vector< int > &HyperTermNos, DwordVector &Result) const
 
void GetAllLemmasWhosePathesStartFromThisSequence (const vector< int > &HyperTermNos, StringSet &Lemmas) const
 
string GetAllThesInterpetations (const char *Lemma) const
 

Private Attributes

StringVector HyperTerms
 
vector< DWORDPathes
 
vector< DWORDPathEndIndex
 
vector< DWORDLeavesPathes
 
CShortStringHolder LeavesLemmas
 
DwordVector m_AllPathes
 

Member Function Documentation

◆ LoadDwdsThesaurus()

bool CDwdsThesaurus::LoadDwdsThesaurus ( )

References GetThesaurusPath(), HyperTerms, LeavesLemmas, LeavesPathes, PathEndIndex, Pathes, CShortStringHolder::ReadShortStringHolder(), ReadVector(), and rtrim().

Referenced by LoadDwdsThesaurus().

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

◆ FindHyperTerm()

int CDwdsThesaurus::FindHyperTerm ( const string &  s) const

References HyperTerms.

Referenced by ReadPathFromString().

Here is the caller graph for this function:

◆ GetAllPathesWhichContainHyperTermNo()

void CDwdsThesaurus::GetAllPathesWhichContainHyperTermNo ( size_t  HyperTermNo,
DwordVector sub_pathes 
) const

References PathEndIndex, and Pathes.

◆ ReadPathFromString()

bool CDwdsThesaurus::ReadPathFromString ( const string &  TextPath,
vector< int > &  HyperTermNos 
) const

References FindHyperTerm(), Trim(), and StringTokenizer::val().

Here is the call graph for this function:

◆ GetAllPathesWhichStartFromThisSequence()

void CDwdsThesaurus::GetAllPathesWhichStartFromThisSequence ( const vector< int > &  HyperTermNos,
DwordVector Result 
) const

References PathEndIndex, and Pathes.

Referenced by GetAllLemmasWhosePathesStartFromThisSequence().

Here is the caller graph for this function:

◆ GetAllLemmasWhosePathesStartFromThisSequence()

void CDwdsThesaurus::GetAllLemmasWhosePathesStartFromThisSequence ( const vector< int > &  HyperTermNos,
StringSet Lemmas 
) const

References GetAllPathesWhichStartFromThisSequence(), LeavesLemmas, and LeavesPathes.

Here is the call graph for this function:

◆ GetAllThesInterpetations()

string CDwdsThesaurus::GetAllThesInterpetations ( const char *  Lemma) const

References HyperTerms, LeavesLemmas, LeavesPathes, PathEndIndex, and Pathes.

Referenced by CConcIndexator::IndexTextOrHtmlFile().

Here is the caller graph for this function:

Member Data Documentation

◆ HyperTerms

StringVector CDwdsThesaurus::HyperTerms
private

◆ Pathes

vector<DWORD> CDwdsThesaurus::Pathes
private

◆ PathEndIndex

vector<DWORD> CDwdsThesaurus::PathEndIndex
private

◆ LeavesPathes

vector<DWORD> CDwdsThesaurus::LeavesPathes
private

◆ LeavesLemmas

CShortStringHolder CDwdsThesaurus::LeavesLemmas
private

◆ m_AllPathes

DwordVector CDwdsThesaurus::m_AllPathes
private

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