Classes | Functions

ConcBigrams.cpp File Reference

#include "StdConc.h"
#include "IndexSet.h"
#include "StringIndexator.h"
#include "TempBigrams.h"
#include "ConcBigrams.h"
#include "../common/SortWithTempFiles.h"
Include dependency graph for ConcBigrams.cpp:

Classes

Functions


Function Documentation

size_t get_size_in_bytes ( const CSecondWord t  )  [inline]
size_t save_to_bytes ( const CSecondWord i,
BYTE buf 
) [inline]

References get_size_in_bytes(), CSecondWord::m_EndOccurOffset, CSecondWord::m_SecondWordId, and CSecondWord::PackFlagsToDWORD().

Referenced by CHitBorders::AddBreakByIndex(), BinaryWriteItem(), save_to_bytes(), and WriteVectorInner().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t restore_from_bytes ( CSecondWord i,
const BYTE buf 
) [inline]

References get_size_in_bytes(), CSecondWord::InitFlagsFromDWORD(), CSecondWord::m_EndOccurOffset, and CSecondWord::m_SecondWordId.

Referenced by BinaryReadItem(), ReadVectorInner(), and restore_from_bytes().

Here is the call graph for this function:

Here is the caller graph for this function:

bool ConvertBufferOffsetToTokenId ( const char *  filename,
const vector< CIndexItem > &  MainTokenIndex 
)

References BinaryReadItem(), BinaryWriteItem(), CreateTempFileName(), FileSize(), CTempBigram::m_LeftTokenId, CTempBigram::m_RightTokenId, CExpc::m_strCause, and RmlMoveFile().

Referenced by CIndexSetForBigrams::ConvertTempBigramsToPersistent().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t get_size_in_bytes ( const CTempBigram2 t  )  [inline]
size_t save_to_bytes ( const CTempBigram2 i,
BYTE buf 
) [inline]
size_t restore_from_bytes ( CTempBigram2 i,
const BYTE buf 
) [inline]