ddc
Public Member Functions | Public Attributes | List of all members
CHitBorders::CBreakCollection Struct Reference

#include <HitBorder.h>

Collaboration diagram for CHitBorders::CBreakCollection:
Collaboration graph
[legend]

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...
 

Detailed Description

CBreakCollectionDescr is a structure that holds properties of a collection of breaks of one type.

Constructor & Destructor Documentation

◆ CBreakCollection()

CHitBorders::CBreakCollection::CBreakCollection ( const string &  ShortName,
const string &  LongName 
)

Member Function Documentation

◆ GetBreakFileName()

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().

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

◆ ReadFromDisk()

void CHitBorders::CBreakCollection::ReadFromDisk ( string  Path,
bool  useMMap = false 
)

References GetBreakFileName(), m_BreakOffsets, and ddcVecFile< T >::open().

Referenced by CHitBorders::LoadHitBorders().

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

◆ ClearAll()

bool CHitBorders::CBreakCollection::ClearAll ( string  Path)

References ddcVecFile< T >::clear(), FileExists(), GetBreakFileName(), and m_BreakOffsets.

Referenced by CHitBorders::RemoveHitBordersFileAndClear().

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

◆ CloseFileForIndexing()

void CHitBorders::CBreakCollection::CloseFileForIndexing ( )

References m_FileForIndexing.

Referenced by CHitBorders::BordersEndIndexing().

Here is the caller graph for this function:

◆ AppendBreaks()

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().

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

◆ SaveToFile()

void CHitBorders::CBreakCollection::SaveToFile ( const string &  FileName)

for new union: save to file

References m_BreakOffsets, and ddcVecFile< T >::save().

Referenced by CConcIndexator::SplitProject().

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

Member Data Documentation

◆ m_ShortName

string CHitBorders::CBreakCollection::m_ShortName

◆ m_LongName

string CHitBorders::CBreakCollection::m_LongName

◆ m_FileForIndexing

FILE* CHitBorders::CBreakCollection::m_FileForIndexing
mutable

a file for temporally storing breaks during indexing

Referenced by CHitBorders::AddBreakByIndex(), CBreakCollection(), CloseFileForIndexing(), and CHitBorders::StartIndexing().

◆ m_BreakOffsets

ddcBreakVector CHitBorders::CBreakCollection::m_BreakOffsets

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