ddc
|
#include <HitBorder.h>
Public Member Functions | |
CBreakCollection (const string &ShortName, const string &LongName) | |
string | GetBreakFileName (string Path) const |
returns the file name for a break collection More... | |
void | ReadFromDisk (string Path, bool useMMap=false) |
bool | ClearAll (string Path) |
void | CloseFileForIndexing () |
void | AppendBreaks (const ddcBreakVector &From, CTokenNo Offset=0) |
for new union: append breaks More... | |
void | SaveToFile (const string &FileName) |
for new union: save to file More... | |
Public Attributes | |
string | m_ShortName |
short name of this break collection More... | |
string | m_LongName |
long name of this break collection More... | |
FILE * | m_FileForIndexing |
a file for temporally storing breaks during indexing More... | |
ddcBreakVector | m_BreakOffsets |
the breaks themselves More... | |
CBreakCollectionDescr is a structure that holds properties of a collection of breaks of one type.
CHitBorders::CBreakCollection::CBreakCollection | ( | const string & | ShortName, |
const string & | LongName | ||
) |
References m_FileForIndexing, m_LongName, and m_ShortName.
string CHitBorders::CBreakCollection::GetBreakFileName | ( | string | Path | ) | const |
returns the file name for a break collection
References Format(), m_ShortName, and MakeFName().
Referenced by ClearAll(), ReadFromDisk(), CConcIndexator::SplitProject(), and CHitBorders::StartIndexing().
void CHitBorders::CBreakCollection::ReadFromDisk | ( | string | Path, |
bool | useMMap = false |
||
) |
References GetBreakFileName(), m_BreakOffsets, and ddcVecFile< T >::open().
Referenced by CHitBorders::LoadHitBorders().
bool CHitBorders::CBreakCollection::ClearAll | ( | string | Path | ) |
References ddcVecFile< T >::clear(), FileExists(), GetBreakFileName(), and m_BreakOffsets.
Referenced by CHitBorders::RemoveHitBordersFileAndClear().
void CHitBorders::CBreakCollection::CloseFileForIndexing | ( | ) |
References m_FileForIndexing.
Referenced by CHitBorders::BordersEndIndexing().
void CHitBorders::CBreakCollection::AppendBreaks | ( | const ddcBreakVector & | From, |
CTokenNo | Offset = 0 |
||
) |
for new union: append breaks
References ddcVecFile< T >::begin(), ddcVecFile< T >::end(), ddcVecFile< T >::ensureData(), ddcVecFile< T >::ensureVec(), m_BreakOffsets, ddcVecFile< T >::m_vec, and ddcVecFile< T >::size().
Referenced by CConcIndexator::CreateAsUnion().
void CHitBorders::CBreakCollection::SaveToFile | ( | const string & | FileName | ) |
for new union: save to file
References m_BreakOffsets, and ddcVecFile< T >::save().
Referenced by CConcIndexator::SplitProject().
string CHitBorders::CBreakCollection::m_ShortName |
short name of this break collection
Referenced by CBreakCollection(), CConcordance::DumpFileIndexTabs(), CHitBorders::GetBorderIndicesString(), GetBreakFileName(), CHitBorders::GetShortNameByName(), CDDCLeafServer::handle__info(), CHitBorders::RegisterBorderIndices(), and CHitBorders::RegisterBreak().
string CHitBorders::CBreakCollection::m_LongName |
long name of this break collection
Referenced by CHitBorders::AddBreakByIndex(), CQToken::BreakName(), CBreakCollection(), CConcordance::DumpFileIndexTabs(), CHitBorders::GetBorderIndicesString(), CDDCLeafServer::handle__info(), and CHitBorders::RegisterBreak().
|
mutable |
a file for temporally storing breaks during indexing
Referenced by CHitBorders::AddBreakByIndex(), CBreakCollection(), CloseFileForIndexing(), and CHitBorders::StartIndexing().
ddcBreakVector CHitBorders::CBreakCollection::m_BreakOffsets |