NCBI C++ ToolKit
|
Search Toolkit Book for CPackString
#include <serial/pack_string.hpp>
Classes | |
struct | SNode |
Public Types | |
typedef SNode | TKey |
typedef set< TKey > | TStrings |
typedef TStrings::iterator | iterator |
Public Member Functions | |
CPackString (void) | |
CPackString (size_t length_limit, size_t count_limit) | |
~CPackString (void) | |
void | ReadString (CObjectIStream &in, string &s) |
size_t | GetLengthLimit (void) const |
size_t | GetCountLimit (void) const |
size_t | GetCount (void) const |
bool | Pack (string &s) |
bool | Pack (string &s, const char *data, size_t size) |
pair< iterator, bool > | Locate (const char *data, size_t size) |
void | AddOld (string &s, const iterator &iter) |
bool | AddNew (string &s, const char *data, size_t size, iterator iter) |
void | Skipped (void) |
CNcbiOstream & | DumpStatistics (CNcbiOstream &out) const |
Static Public Member Functions | |
static bool | Assign (string &s, const string &src) |
static bool | s_GetEnvFlag (const char *env, bool def_val) |
static bool | TryStringPack (void) |
Private Member Functions | |
CPackString (const CPackString &) | |
CPackString & | operator= (const CPackString &) |
Static Private Member Functions | |
static void | x_RefCounterError (void) |
static bool | x_Assign (string &s, const string &src) |
Private Attributes | |
size_t | m_LengthLimit |
size_t | m_CountLimit |
size_t | m_Skipped |
size_t | m_CompressedIn |
size_t | m_CompressedOut |
set< SNode > | m_Strings |
Definition at line 42 of file pack_string.hpp.
Definition at line 109 of file pack_string.hpp.
typedef SNode CPackString::TKey |
Definition at line 107 of file pack_string.hpp.
typedef set<TKey> CPackString::TStrings |
Definition at line 108 of file pack_string.hpp.
CPackString::CPackString | ( | void | ) |
Definition at line 44 of file pack_string.cpp.
CPackString::CPackString | ( | size_t | length_limit, |
size_t | count_limit | ||
) |
Definition at line 52 of file pack_string.cpp.
CPackString::~CPackString | ( | void | ) |
Definition at line 60 of file pack_string.cpp.
|
private |
Definition at line 188 of file pack_string.cpp.
References _ASSERT, AddOld(), data, set< Key, Compare >::end(), GetCount(), GetCountLimit(), GetLengthLimit(), set< Key, Compare >::insert(), ncbi::grid::netcache::search::fields::key, set< Key, Compare >::lower_bound(), m_CompressedOut, m_Strings, ncbi::grid::netcache::search::fields::size, and Skipped().
Referenced by CObjectIStreamAsnBinary::ReadPackedString().
Definition at line 268 of file pack_string.hpp.
References m_CompressedIn.
Referenced by AddNew(), Pack(), and CObjectIStreamAsnBinary::ReadPackedString().
Definition at line 206 of file pack_string.hpp.
References x_Assign().
Referenced by CPackString::SNode::AssignTo(), SSNP_Info::x_CreateSeq_feat(), and SSNP_Info::x_UpdateSeq_featData().
CNcbiOstream & CPackString::DumpStatistics | ( | CNcbiOstream & | out | ) | const |
Definition at line 65 of file pack_string.cpp.
References i, ITERATE, m_CompressedIn, m_CompressedOut, m_Skipped, m_Strings, and out().
Referenced by operator<<().
|
inline |
Definition at line 199 of file pack_string.hpp.
References m_CompressedOut.
|
inline |
Definition at line 192 of file pack_string.hpp.
References m_CountLimit.
|
inline |
Definition at line 185 of file pack_string.hpp.
References m_LengthLimit.
Referenced by AddNew(), Locate(), Pack(), and CObjectIStreamAsnBinary::ReadPackedString().
|
inline |
Definition at line 256 of file pack_string.hpp.
References _ASSERT, data, set< Key, Compare >::end(), GetLengthLimit(), ncbi::grid::netcache::search::fields::key, set< Key, Compare >::lower_bound(), m_Strings, and ncbi::grid::netcache::search::fields::size.
Referenced by CObjectIStreamAsnBinary::ReadPackedString().
|
private |
Definition at line 141 of file pack_string.cpp.
References AddOld(), set< Key, Compare >::end(), GetCount(), GetCountLimit(), GetLengthLimit(), set< Key, Compare >::insert(), ncbi::grid::netcache::search::fields::key, set< Key, Compare >::lower_bound(), m_CompressedOut, m_Strings, and Skipped().
Referenced by CObjectIStreamAsnBinary::ReadPackedString(), and CObjectIStream::ReadPackedString().
Definition at line 164 of file pack_string.cpp.
References AddOld(), data, set< Key, Compare >::end(), GetCount(), GetCountLimit(), GetLengthLimit(), set< Key, Compare >::insert(), ncbi::grid::netcache::search::fields::key, set< Key, Compare >::lower_bound(), m_CompressedOut, m_Strings, ncbi::grid::netcache::search::fields::size, and Skipped().
|
inline |
Definition at line 248 of file pack_string.hpp.
References in().
Definition at line 83 of file pack_string.cpp.
References NStr::CompareNocase(), env, ENV_YES, and val.
Referenced by TryStringPack().
|
inline |
Definition at line 276 of file pack_string.hpp.
References m_Skipped.
Referenced by AddNew(), Pack(), and CObjectIStreamAsnBinary::ReadPackedString().
|
static |
Definition at line 94 of file pack_string.cpp.
References s_GetEnvFlag(), and STRING_PACK_ENV.
Referenced by CProcessor::TryStringPack(), and x_Assign().
Definition at line 125 of file pack_string.cpp.
References TryStringPack(), and x_RefCounterError().
Referenced by Assign().
|
staticprivate |
|
private |
Definition at line 146 of file pack_string.hpp.
Referenced by AddOld(), and DumpStatistics().
|
private |
Definition at line 147 of file pack_string.hpp.
Referenced by AddNew(), DumpStatistics(), GetCount(), and Pack().
|
private |
Definition at line 144 of file pack_string.hpp.
Referenced by GetCountLimit().
|
private |
Definition at line 143 of file pack_string.hpp.
Referenced by GetLengthLimit().
|
private |
Definition at line 145 of file pack_string.hpp.
Referenced by DumpStatistics(), and Skipped().
Definition at line 148 of file pack_string.hpp.
Referenced by AddNew(), DumpStatistics(), Locate(), and Pack().