NCBI C++ ToolKit
|
#include <objmgr/split/size.hpp>
Public Types | |
typedef size_t | TDataSize |
typedef pair< TDataSize, TDataSize > | TSizeRatio |
Public Member Functions | |
CSize (void) | |
CSize (const CAsnSizer &sizer) | |
CSize (TDataSize asn_size, TSizeRatio ratio) | |
void | clear (void) |
CSize & | operator+= (const CSize &size) |
CSize & | operator-= (const CSize &size) |
CSize | operator+ (const CSize &size) const |
size_t | GetCount (void) const |
TDataSize | GetAsnSize (void) const |
TDataSize | GetZipSize (void) const |
double | GetRatio (void) const |
TSizeRatio | GetExactRatio (void) const |
CNcbiOstream & | Print (CNcbiOstream &out) const |
DECLARE_OPERATOR_BOOL (m_Count !=0) | |
bool | operator> (const CSize &size) const |
int | Compare (const CSize &size) const |
Private Attributes | |
size_t | m_Count |
TDataSize | m_AsnSize |
TDataSize | m_ZipSize |
typedef size_t CSize::TDataSize |
typedef pair<TDataSize, TDataSize> CSize::TSizeRatio |
CSize::CSize | ( | TDataSize | asn_size, |
TSizeRatio | ratio | ||
) |
|
inline |
Definition at line 58 of file size.hpp.
References m_AsnSize, m_Count, and m_ZipSize.
Referenced by SIdAnnotPieces::clear(), CLocObjects_SplitInfo::clear(), and CSize().
Definition at line 58 of file size.cpp.
References GetAsnSize(), GetCount(), GetZipSize(), and ncbi::grid::netcache::search::fields::size.
Referenced by CAnnotObject_SplitInfo::Compare(), CSeq_annot_SplitInfo::Compare(), and CSeq_descr_SplitInfo::Compare().
CSize::DECLARE_OPERATOR_BOOL | ( | m_Count ! | = 0 | ) |
|
inline |
|
inline |
Definition at line 86 of file size.hpp.
References m_Count.
Referenced by Compare(), and CBlobSplitterImpl::SplitPieces().
|
inline |
Definition at line 102 of file size.hpp.
References m_AsnSize, and m_ZipSize.
Referenced by CSeq_annot_SplitInfo::SetSeq_annot().
|
inline |
|
inline |
Definition at line 94 of file size.hpp.
References m_ZipSize.
Referenced by Compare(), CBlobSplitterImpl::CopyHist(), CBlobSplitterImpl::NextChunk(), Print(), and CBlobSplitterImpl::SplitPieces().
Definition at line 79 of file size.hpp.
References ncbi::grid::netcache::search::fields::size.
Definition at line 111 of file size.hpp.
References m_ZipSize, and ncbi::grid::netcache::search::fields::size.
CNcbiOstream & CSize::Print | ( | CNcbiOstream & | out | ) | const |
Definition at line 97 of file size.cpp.
References GetAsnSize(), GetRatio(), GetZipSize(), m_Count, and out().
|
private |
Definition at line 120 of file size.hpp.
Referenced by clear(), GetAsnSize(), GetExactRatio(), GetRatio(), operator+=(), and operator-=().
|
private |
Definition at line 119 of file size.hpp.
Referenced by clear(), GetCount(), operator+=(), operator-=(), and Print().
|
private |
Definition at line 121 of file size.hpp.
Referenced by clear(), GetExactRatio(), GetRatio(), GetZipSize(), operator+=(), operator-=(), and operator>().