#include "utilit.h"
Go to the source code of this file.
Functions
- size_t get_size_in_bytes (const DWORD &t)
- size_t save_to_bytes (const DWORD &i, BYTE *buf)
- size_t restore_from_bytes (DWORD &i, const BYTE *buf)
- size_t get_size_in_bytes (const int &t)
- size_t save_to_bytes (const int &i, BYTE *buf)
- size_t restore_from_bytes (int &i, const BYTE *buf)
- size_t get_size_in_bytes (const char &t)
- size_t save_to_bytes (const char &i, BYTE *buf)
- size_t restore_from_bytes (char &i, const BYTE *buf)
- size_t get_size_in_bytes (const BYTE &t)
- size_t save_to_bytes (const BYTE &i, BYTE *buf)
- size_t restore_from_bytes (BYTE &i, const BYTE *buf)
- size_t get_size_in_bytes (const WORD &t)
- size_t save_to_bytes (const WORD &i, BYTE *buf)
- size_t restore_from_bytes (WORD &i, const BYTE *buf)
- size_t get_size_in_bytes (const QWORD &t)
- size_t save_to_bytes (const QWORD &i, BYTE *buf)
- size_t restore_from_bytes (QWORD &i, const BYTE *buf)
- size_t get_size_in_bytes (const double &t)
- size_t save_to_bytes (const double &i, BYTE *buf)
- size_t restore_from_bytes (double &i, const BYTE *buf)
- template<class T > size_t get_size_in_bytes (const pair< T, T > &t)
- template<class T > size_t save_to_bytes (const pair< T, T > &t, BYTE *buf)
- template<class T > size_t restore_from_bytes (pair< T, T > &t, const BYTE *buf)
- template<class T > size_t get_size_in_bytes (const pair< QWORD, T > &t)
- template<class T > size_t save_to_bytes (const pair< QWORD, T > &t, BYTE *buf)
- template<class T > size_t restore_from_bytes (pair< QWORD, T > &t, const BYTE *buf)
- template<class T > size_t get_size_in_bytes (const troika< T, T, T > &t)
- template<class T > size_t save_to_bytes (const troika< T, T, T > &t, BYTE *buf)
- template<class T > size_t restore_from_bytes (troika< T, T, T > &t, const BYTE *buf)
- template<class T > bool BinaryReadItem (FILE *fp, T &V)
- template<class T > void ReadVectorInner (FILE *fp, vector< T > &V, size_t Count)
- template<class T > size_t GetSizeInBytes ()
- template<class T > void ReadVector (const string &FileName, vector< T > &V)
- template<class T > bool BinaryWriteItem (FILE *fp, const T &V)
- template<class T > bool WriteVectorInner (FILE *fp, const vector< T > &V)
- template<class T > bool WriteVector (const string &FileName, const vector< T > &V)
Variables
Function Documentation
size_t get_size_in_bytes |
( |
const DWORD & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const DWORD & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
DWORD & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
size_t get_size_in_bytes |
( |
const int & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const int & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
int & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
size_t get_size_in_bytes |
( |
const char & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const char & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
char & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
size_t get_size_in_bytes |
( |
const BYTE & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const BYTE & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
BYTE & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
size_t get_size_in_bytes |
( |
const WORD & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const WORD & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
WORD & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
size_t get_size_in_bytes |
( |
const QWORD & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const QWORD & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
QWORD & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
size_t get_size_in_bytes |
( |
const double & |
t |
) |
[inline] |
size_t save_to_bytes |
( |
const double & |
i, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
size_t restore_from_bytes |
( |
double & |
i, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
size_t get_size_in_bytes |
( |
const pair< T, T > & |
t |
) |
[inline] |
template<class T >
size_t save_to_bytes |
( |
const pair< T, T > & |
t, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
size_t restore_from_bytes |
( |
pair< T, T > & |
t, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
size_t get_size_in_bytes |
( |
const pair< QWORD, T > & |
t |
) |
[inline] |
template<class T >
size_t save_to_bytes |
( |
const pair< QWORD, T > & |
t, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
size_t restore_from_bytes |
( |
pair< QWORD, T > & |
t, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
size_t get_size_in_bytes |
( |
const troika< T, T, T > & |
t |
) |
[inline] |
template<class T >
size_t save_to_bytes |
( |
const troika< T, T, T > & |
t, |
|
|
BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
size_t restore_from_bytes |
( |
troika< T, T, T > & |
t, |
|
|
const BYTE * |
buf | |
|
) |
| | [inline] |
template<class T >
bool BinaryReadItem |
( |
FILE * |
fp, |
|
|
T & |
V | |
|
) |
| | |
template<class T >
void ReadVectorInner |
( |
FILE * |
fp, |
|
|
vector< T > & |
V, |
|
|
size_t |
Count | |
|
) |
| | |
References Format(), get_size_in_bytes(), restore_from_bytes(), and VectorMaxStructSize.
Referenced by CBigrams::GetBigrams(), CMorphDict::Load(), CIndexSetForQueryingStage::LoadPeriodDevision(), CStaticVectorMap< T >::LoadVectorMap(), CItemIndexForLoading::ReadFromTemporalFile(), CIndexBigram::ReadSecondWords(), CShortStringHolder::ReadShortStringHolder(), ReadVector(), and SortWithFiles().
template<class T >
size_t GetSizeInBytes |
( |
|
) |
|
template<class T >
void ReadVector |
( |
const string & |
FileName, |
|
|
vector< T > & |
V | |
|
) |
| | [inline] |
References FileSize(), get_size_in_bytes(), and ReadVectorInner().
Referenced by CStatistic::Load(), CConcXml::LoadBibl(), CIndexBigram::LoadBigrams(), CDwdsThesaurus::LoadDwdsThesaurus(), LoadFileToString(), CHitBorders::LoadHitBorders(), CIndexSetForQueryingStage::LoadIndexSet(), CIndexSetForBigrams::LoadIndexSet(), CHitBorders::CBreakCollection::ReadFromDisk(), CConcXml::CFreeBiblIndex::ReadFromDisk(), CStringIndexSet::ReadFromTheDisk(), CStringIndexator::ReadIndicesFromTheDisk(), and ReadSourceFile().
template<class T >
bool BinaryWriteItem |
( |
FILE * |
fp, |
|
|
const T & |
V | |
|
) |
| | |
template<class T >
bool WriteVectorInner |
( |
FILE * |
fp, |
|
|
const vector< T > & |
V | |
|
) |
| | |
template<class T >
bool WriteVector |
( |
const string & |
FileName, |
|
|
const vector< T > & |
V | |
|
) |
| | [inline] |
References ErrorMessage(), and WriteVectorInner().
Referenced by CHitBorders::BordersEndIndexing(), CConcXml::CFreeBiblIndex::ConvertAndSaveToDiskAfterIndexing(), CIndexSetForBigrams::ConvertTempBigramsToPersistent(), CIndexSetForBigrams::CreateRightBigrams(), CConcXml::CFreeBiblIndex::CreateUnion(), CStringIndexator::FinalSaveAllIndices(), CConcXml::FinalSaveBibliography(), SortWithFiles(), CConcXml::UniteBibliography(), CHitBorders::UniteBorders(), and CStringIndexSet::WriteToFile().
Variable Documentation