NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Functions | |
Serialization interfaces | |
template<class Key , class Score > | |
void | Serialize (CNcbiOstream &, const CRawScoreVector< Key, Score > &) |
Generics These throw an exception; we must implement serialization for each type. More... | |
template<class Key , class Score > | |
void | Deserialize (CNcbiIstream &istr, CRawScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Serialize (CNcbiOstream &, const CScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Deserialize (CNcbiIstream &istr, CScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Encode (const CRawScoreVector< Key, Score > &, vector< char > &) |
template<class Key , class Score > | |
void | Encode (const CRawScoreVector< Key, Score > &, vector< unsigned char > &) |
template<class Key , class Score > | |
void | Encode (const CRawScoreVector< Key, Score > &, CSimpleBuffer &) |
template<class Key , class Score > | |
void | Decode (const vector< char > &, CRawScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Decode (const vector< unsigned char > &, CRawScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Decode (const CSimpleBuffer &, CRawScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Decode (const void *, size_t, CRawScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Encode (const CScoreVector< Key, Score > &, vector< char > &) |
template<class Key , class Score > | |
void | Encode (const CScoreVector< Key, Score > &, vector< unsigned char > &) |
template<class Key , class Score > | |
void | Encode (const CScoreVector< Key, Score > &, CSimpleBuffer &) |
template<class Key , class Score > | |
void | Decode (const vector< char > &, CScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Decode (const vector< unsigned char > &, CScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Decode (const CSimpleBuffer &, CScoreVector< Key, Score > &) |
template<class Key , class Score > | |
void | Decode (const void *, size_t, CScoreVector< Key, Score > &) |
template<> | |
void | Serialize< Uint4, float > (CNcbiOstream &ostr, const CRawScoreVector< Uint4, float > &vec) |
Specializations for known types. More... | |
template<> | |
void | Deserialize< Uint4, float > (CNcbiIstream &istr, CRawScoreVector< Uint4, float > &vec) |
template<> | |
void | Encode< Uint4, float > (const CRawScoreVector< Uint4, float > &vec, vector< unsigned char > &data) |
template<> | |
void | Encode< Uint4, float > (const CRawScoreVector< Uint4, float > &vec, vector< char > &data) |
template<> | |
void | Encode< Uint4, float > (const CRawScoreVector< Uint4, float > &vec, CSimpleBuffer &data) |
template<> | |
void | Decode< Uint4, float > (const vector< unsigned char > &data, CRawScoreVector< Uint4, float > &vec) |
template<> | |
void | Decode< Uint4, float > (const vector< char > &data, CRawScoreVector< Uint4, float > &vec) |
template<> | |
void | Decode< Uint4, float > (const CSimpleBuffer &data, CRawScoreVector< Uint4, float > &vec) |
template<> | |
void | Decode< Uint4, float > (const void *data, size_t size, CRawScoreVector< Uint4, float > &vec) |
template<> | |
void | Serialize< Uint4, float > (CNcbiOstream &ostr, const CScoreVector< Uint4, float > &vec) |
template<> | |
void | Deserialize< Uint4, float > (CNcbiIstream &istr, CScoreVector< Uint4, float > &vec) |
template<> | |
void | Encode< Uint4, float > (const CScoreVector< Uint4, float > &vec, vector< char > &data) |
template<> | |
void | Encode< Uint4, float > (const CScoreVector< Uint4, float > &vec, vector< unsigned char > &data) |
template<> | |
void | Encode< Uint4, float > (const CScoreVector< Uint4, float > &vec, CSimpleBuffer &data) |
template<> | |
void | Decode< Uint4, float > (const vector< char > &data, CScoreVector< Uint4, float > &vec) |
template<> | |
void | Decode< Uint4, float > (const vector< unsigned char > &data, CScoreVector< Uint4, float > &vec) |
template<> | |
void | Decode< Uint4, float > (const CSimpleBuffer &data, CScoreVector< Uint4, float > &vec) |
template<> | |
void | Decode< Uint4, float > (const void *data, size_t size, CScoreVector< Uint4, float > &vec) |
template<> | |
void | Serialize< string, float > (CNcbiOstream &ostr, const CScoreVector< string, float > &vec) |
String based keys Raw vector encoding is not supported. More... | |
template<> | |
void | Deserialize< string, float > (CNcbiIstream &istr, CScoreVector< string, float > &vec) |
template<> | |
void | Encode< string, float > (const CScoreVector< string, float > &vec, vector< unsigned char > &data) |
template<> | |
void | Encode< string, float > (const CScoreVector< string, float > &vec, vector< char > &data) |
template<> | |
void | Encode< string, float > (const CScoreVector< string, float > &vec, CSimpleBuffer &data) |
template<> | |
void | Decode< string, float > (const vector< unsigned char > &data, CScoreVector< string, float > &vec) |
template<> | |
void | Decode< string, float > (const vector< char > &data, CScoreVector< string, float > &vec) |
template<> | |
void | Decode< string, float > (const CSimpleBuffer &data, CScoreVector< string, float > &vec) |
template<> | |
void | Decode< string, float > (const void *data, size_t size, CScoreVector< string, float > &vec) |
void Decode | ( | const CSimpleBuffer & | , |
CRawScoreVector< Key, Score > & | |||
) |
Definition at line 120 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode | ( | const CSimpleBuffer & | , |
CScoreVector< Key, Score > & | |||
) |
Definition at line 177 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode | ( | const vector< char > & | , |
CRawScoreVector< Key, Score > & | |||
) |
Definition at line 105 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
Referenced by rapidjson::internal::CountStringCodePoint(), rapidjson::internal::DecodedStream< SourceStream, Encoding >::Decode(), rapidjson::AutoUTF< CharType >::Decode(), Decode< string, float >(), Decode< Uint4, float >(), rapidjson::internal::DecodedStream< SourceStream, Encoding >::DecodedStream(), CTextUtil::DecodeFreqs(), rapidjson::internal::DecodedStream< SourceStream, Encoding >::Take(), rapidjson::Transcoder< SourceEncoding, TargetEncoding >::Transcode(), rapidjson::Transcoder< SourceEncoding, TargetEncoding >::TranscodeUnsafe(), and rapidjson::Writer< OutputStream, UTF8<>, UTF8<>, CrtAllocator, kWriteDefaultFlags >::WriteString().
void Decode | ( | const vector< char > & | , |
CScoreVector< Key, Score > & | |||
) |
Definition at line 163 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode | ( | const vector< unsigned char > & | , |
CRawScoreVector< Key, Score > & | |||
) |
Definition at line 112 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode | ( | const vector< unsigned char > & | , |
CScoreVector< Key, Score > & | |||
) |
Definition at line 170 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode | ( | const void * | , |
size_t | , | ||
CRawScoreVector< Key, Score > & | |||
) |
Definition at line 128 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode | ( | const void * | , |
size_t | , | ||
CScoreVector< Key, Score > & | |||
) |
Definition at line 184 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Decode< string, float > | ( | const CSimpleBuffer & | data, |
CScoreVector< string, float > & | vec | ||
) |
Definition at line 389 of file vector_serial.cpp.
References Decode(), and CSimpleBufferT< T, ResizeStrategy >::size().
void Decode< string, float > | ( | const vector< char > & | data, |
CScoreVector< string, float > & | vec | ||
) |
Definition at line 373 of file vector_serial.cpp.
References Decode().
void Decode< string, float > | ( | const vector< unsigned char > & | data, |
CScoreVector< string, float > & | vec | ||
) |
Definition at line 381 of file vector_serial.cpp.
References Decode().
void Decode< string, float > | ( | const void * | data, |
size_t | size, | ||
CScoreVector< string, float > & | vec | ||
) |
Definition at line 364 of file vector_serial.cpp.
References Deserialize(), and ncbi::grid::netcache::search::fields::size.
void Decode< Uint4, float > | ( | const CSimpleBuffer & | data, |
CRawScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 235 of file vector_serial.cpp.
References Decode(), and CSimpleBufferT< T, ResizeStrategy >::size().
void Decode< Uint4, float > | ( | const CSimpleBuffer & | data, |
CScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 260 of file vector_serial.cpp.
References Decode(), and CSimpleBufferT< T, ResizeStrategy >::size().
void Decode< Uint4, float > | ( | const vector< char > & | data, |
CRawScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 221 of file vector_serial.cpp.
References Decode().
void Decode< Uint4, float > | ( | const vector< char > & | data, |
CScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 242 of file vector_serial.cpp.
References Decode().
void Decode< Uint4, float > | ( | const vector< unsigned char > & | data, |
CRawScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 228 of file vector_serial.cpp.
References Decode().
void Decode< Uint4, float > | ( | const vector< unsigned char > & | data, |
CScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 251 of file vector_serial.cpp.
References Decode().
void Decode< Uint4, float > | ( | const void * | data, |
size_t | size, | ||
CRawScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 189 of file vector_serial.cpp.
References CRawScoreVector< Key, Score >::clear(), CRawScoreVector< Key, Score >::reserve(), CRawScoreVector< Key, Score >::Set(), and ncbi::grid::netcache::search::fields::size.
void Decode< Uint4, float > | ( | const void * | data, |
size_t | size, | ||
CScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 269 of file vector_serial.cpp.
References Decode(), and ncbi::grid::netcache::search::fields::size.
void Deserialize | ( | CNcbiIstream & | istr, |
CRawScoreVector< Key, Score > & | |||
) |
Definition at line 57 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
Referenced by Decode< string, float >(), CBDB_BvStore< TBV >::Read(), CBDB_BvSplitDictStore< Key, Dictionary, BvStore, BV >::ReadVector(), and CBDB_BvSplitDictStore< Key, Dictionary, BvStore, BV >::ReadVectorById().
void Deserialize | ( | CNcbiIstream & | istr, |
CScoreVector< Key, Score > & | |||
) |
Definition at line 71 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Deserialize< string, float > | ( | CNcbiIstream & | istr, |
CScoreVector< string, float > & | vec | ||
) |
Definition at line 307 of file vector_serial.cpp.
References CScoreVector< Key, Score >::clear(), CScoreVector< Key, Score >::end(), CZipStreamDecompressor::GetDecompressor(), CScoreVector< Key, Score >::insert(), len, and CZipCompression::SetWindowBits().
void Deserialize< Uint4, float > | ( | CNcbiIstream & | istr, |
CRawScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 68 of file vector_serial.cpp.
void Deserialize< Uint4, float > | ( | CNcbiIstream & | istr, |
CScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 76 of file vector_serial.cpp.
void Encode | ( | const CRawScoreVector< Key, Score > & | , |
CSimpleBuffer & | |||
) |
Definition at line 96 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Encode | ( | const CRawScoreVector< Key, Score > & | , |
vector< char > & | |||
) |
Definition at line 80 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
Referenced by rapidjson::AutoUTF< CharType >::Encode(), Encode< Uint4, float >(), CTextUtil::EncodeFreqs(), rapidjson::GenericReader< SourceEncoding, TargetEncoding, StackAllocator >::ParseStringToStream(), and rapidjson::Transcoder< SourceEncoding, TargetEncoding >::Transcode().
void Encode | ( | const CRawScoreVector< Key, Score > & | , |
vector< unsigned char > & | |||
) |
Definition at line 88 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Encode | ( | const CScoreVector< Key, Score > & | , |
CSimpleBuffer & | |||
) |
Definition at line 154 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Encode | ( | const CScoreVector< Key, Score > & | , |
vector< char > & | |||
) |
Definition at line 138 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Encode | ( | const CScoreVector< Key, Score > & | , |
vector< unsigned char > & | |||
) |
Definition at line 146 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Encode< string, float > | ( | const CScoreVector< string, float > & | vec, |
CSimpleBuffer & | data | ||
) |
Definition at line 354 of file vector_serial.cpp.
References Serialize().
void Encode< string, float > | ( | const CScoreVector< string, float > & | vec, |
vector< char > & | data | ||
) |
Definition at line 334 of file vector_serial.cpp.
References Serialize().
void Encode< string, float > | ( | const CScoreVector< string, float > & | vec, |
vector< unsigned char > & | data | ||
) |
Definition at line 344 of file vector_serial.cpp.
References Serialize().
void Encode< Uint4, float > | ( | const CRawScoreVector< Uint4, float > & | vec, |
CSimpleBuffer & | data | ||
) |
Definition at line 167 of file vector_serial.cpp.
void Encode< Uint4, float > | ( | const CRawScoreVector< Uint4, float > & | vec, |
vector< char > & | data | ||
) |
Definition at line 165 of file vector_serial.cpp.
void Encode< Uint4, float > | ( | const CRawScoreVector< Uint4, float > & | vec, |
vector< unsigned char > & | data | ||
) |
Definition at line 166 of file vector_serial.cpp.
void Encode< Uint4, float > | ( | const CScoreVector< Uint4, float > & | vec, |
CSimpleBuffer & | data | ||
) |
Definition at line 179 of file vector_serial.cpp.
References Encode().
void Encode< Uint4, float > | ( | const CScoreVector< Uint4, float > & | vec, |
vector< char > & | data | ||
) |
Definition at line 171 of file vector_serial.cpp.
References Encode().
void Encode< Uint4, float > | ( | const CScoreVector< Uint4, float > & | vec, |
vector< unsigned char > & | data | ||
) |
void Serialize | ( | CNcbiOstream & | , |
const CRawScoreVector< Key, Score > & | |||
) |
Generics These throw an exception; we must implement serialization for each type.
Definition at line 50 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
Referenced by Encode< string, float >().
void Serialize | ( | CNcbiOstream & | , |
const CScoreVector< Key, Score > & | |||
) |
Definition at line 64 of file vector_serial.hpp.
References eUnknown, and NCBI_THROW.
void Serialize< string, float > | ( | CNcbiOstream & | ostr, |
const CScoreVector< string, float > & | vec | ||
) |
String based keys Raw vector encoding is not supported.
Definition at line 285 of file vector_serial.cpp.
References ICompression::eLevel_Best, CZipStreamCompressor::GetCompressor(), ITERATE, len, CZipCompression::SetMemoryLevel(), and CZipCompression::SetWindowBits().
void Serialize< Uint4, float > | ( | CNcbiOstream & | ostr, |
const CRawScoreVector< Uint4, float > & | vec | ||
) |
void Serialize< Uint4, float > | ( | CNcbiOstream & | ostr, |
const CScoreVector< Uint4, float > & | vec | ||
) |
Definition at line 60 of file vector_serial.cpp.