Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

CStringIndexator Class Reference

#include <StringIndexator.h>

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

List of all members.

Public Member Functions

Public Attributes

Protected Member Functions

Protected Attributes


Detailed Description

CStringIndexator contains a set of all token indices and corpus periods. It contains also the main path to the project file.


Constructor & Destructor Documentation

CStringIndexator::CStringIndexator (  ) 
CStringIndexator::~CStringIndexator (  ) 

References ClearStringIndices().

Here is the call graph for this function:


Member Function Documentation

bool CStringIndexator::RegisterChunkIndex (  )  [protected]

register chunk index (chunks:NP, VP etc)

References ChunkIndexName, GetIndexByName(), CStringIndexSet::InitIndexSet(), m_Indices, and m_pChunkIndex.

Referenced by CConcIndexator::LoadOptionsFromString().

Here is the call graph for this function:

Here is the caller graph for this function:

string CStringIndexator::GetSearchPeriodsFileName (  )  const [protected]

return the file name for search periods

References m_Path, and MakeFName().

Referenced by CConcIndexator::DestroyIndex(), FinalSaveAllIndices(), ReadIndicesFromTheDisk(), and CConcIndexator::WasIndexed().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CStringIndexator::DestroyIndices (  )  [protected]

call DestroyIndexSet for all registered indices

References m_Indices.

Referenced by CConcIndexator::DestroyIndex().

Here is the caller graph for this function:

bool CStringIndexator::ReadIndicesFromTheDisk (  )  [protected]

call ReadFromTheDisk for all registered indices

References GetSearchPeriodsFileName(), m_Indices, m_SearchPeriods, and ReadVector().

Referenced by CConcIndexator::LoadProject().

Here is the call graph for this function:

Here is the caller graph for this function:

void CStringIndexator::ClearStringIndices (  )  [protected]

clear m_Indices

References m_Indices.

Referenced by CConcIndexator::CreateAsUnion(), RegisterStringIndices(), and ~CStringIndexator().

Here is the caller graph for this function:

bool CStringIndexator::IndexOneToken ( const char *  Line,
const CTokenNo TokenNo 
) [protected]

index one token and its properies (delimited by CConcCommon.h::globalFieldDelimeter)

References ddc_archive_stub, ErrorMessage(), Format(), globalFieldDelimeter, and m_Indices.

Referenced by CConcIndexator::IndexMorphXml(), CConcIndexator::IndexOneTableTextArea(), and CConcIndexator::IndexTextOrHtmlFile().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CStringIndexator::RegisterStringIndices ( string  IndicesStr  ) 

read index declarations from a string and register them

References ClearStringIndices(), ErrorMessage(), GetIndexByName(), CStringIndexSet::InitIndexSet(), m_Indices, Name, and Trim().

Referenced by CConcIndexator::LoadOptionsFromString().

Here is the call graph for this function:

Here is the caller graph for this function:

void CStringIndexator::SetPath ( string  Path  ) 

set the path to the indices

References m_Path.

Referenced by CConcIndexator::LoadSourceFilesAndOptions(), and CConcordance::SaveProject().

Here is the caller graph for this function:

string CStringIndexator::GetIndicesString (  )  const

return all registered index declarations

References ChunkIndexName, Format(), m_Indices, and Trim().

Referenced by CConcIndexator::CreateAsUnion(), CConcIndexator::LoadOptionsFromString(), and CConcIndexator::SaveOptionsToString().

Here is the call graph for this function:

Here is the caller graph for this function:

CStringIndexSet * CStringIndexator::GetIndexByNameOrShortName ( const string &  Name  ) 

return a pointer to the index by CStringIndexSet::m_Name or CStringIndexSet::m_ShortName

References m_Indices.

Referenced by CQueryTokenNode::CreateNodeByIndexName().

Here is the caller graph for this function:

size_t CStringIndexator::GetSearchPeriodsCount (  )  const
const CTokenNo& CStringIndexator::GetSearchPeriod ( size_t  i  )  const [inline]
bool CStringIndexator::StartIndexing ( string  Path  ) 

call CreateTempFiles for all registered indices

References m_Indices, and m_Path.

Referenced by CConcIndexator::StartIndexing().

Here is the caller graph for this function:

bool CStringIndexator::TerminateIndexing (  ) 

call DeleteTempFiles for all registered indices

References m_Indices.

Referenced by CConcIndexator::TerminateIndexing().

Here is the caller graph for this function:

bool CStringIndexator::FinalSaveAllIndices ( bool  bAfterLoading  ) 

final saving all indices to disk (converting temp files to persistent)

References GetSearchPeriodsFileName(), m_Indices, m_SearchPeriods, and WriteVector().

Referenced by CConcIndexator::CreateAsUnion(), and CConcIndexatorInvoker::FinalizeIndex().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CStringIndexator::AddInputLoadIndexToMemoryLoadIndex (  ) 

unites input index with memory index and clears input load index

References m_Indices.

Referenced by CConcIndexatorInvoker::BuildIndex(), and CConcIndexatorInvoker::FinalizeIndex().

Here is the caller graph for this function:

bool CStringIndexator::AddMemoryLoadIndexToMainLoadIndex (  ) 

unites memory index with main index and clears memory load index

References m_Indices.

Referenced by CConcIndexatorInvoker::BuildIndex(), and CConcIndexatorInvoker::FinalizeIndex().

Here is the caller graph for this function:

bool CStringIndexator::SaveMemoryLoadIndex (  ) 

store memory load index on the disk

References m_Indices.

Referenced by CConcIndexatorInvoker::BuildIndex(), and CConcIndexatorInvoker::FinalizeIndex().

Here is the caller graph for this function:

CStringIndexSet * CStringIndexator::GetIndexByName ( const string &  Name  ) 
CStringIndexSet * CStringIndexator::GetTokenIndex (  ) 

return the first index that normally contains tokens themselves

References m_Indices.

Referenced by CConcHolder::GetFileSnippets(), CConcHolder::GetHitIds(), and CConcHolder::SaveOccurrences().

Here is the caller graph for this function:

const CStringIndexSet * CStringIndexator::GetTokenIndex (  )  const

return the first index that normally contains tokens themselves

References m_Indices.

void CStringIndexator::ProcessBigramBorders ( const int  BreakCollectionNo,
CTokenNo  occurrence 
)

add "Wi <eos>" bigrams for end of sentence

References m_Indices.

Referenced by CConcIndexator::IndexOneTableTextArea(), and CConcIndexator::IndexTextOrHtmlFile().

Here is the caller graph for this function:


Member Data Documentation

a quick reference to the left bigrams index

Referenced by CStringIndexator().

a quick reference to the right bigrams index

Referenced by CStringIndexator().


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