NCBI C++ ToolKit
|
Search Toolkit Book for CSNPBlobId
#include <sra/data_loaders/snp/impl/snploader_impl.hpp>
Public Member Functions | |
CSNPBlobId (const CTempString &str) | |
CSNPBlobId (const CSNPFileInfo &file, const CSeq_id_Handle &seq_id, size_t filter_index) | |
CSNPBlobId (const CSNPDbSeqIterator &seq, size_t filter_index) | |
CSNPBlobId (const CSNPFileInfo &file, size_t seq_index, size_t filter_index) | |
~CSNPBlobId (void) | |
string | ToString (void) const |
Get string representation of blob id. More... | |
void | FromString (CTempString str) |
bool | FromSatString (CTempString str) |
bool | operator< (const CBlobId &id) const |
bool | operator== (const CBlobId &id) const |
bool | IsSatId (void) const |
Int4 | GetSat (void) const |
Int4 | GetSubSat (void) const |
Int4 | GetSatKey (void) const |
bool | IsValidSat (void) const |
bool | IsValidSubSat (void) const |
bool | IsValidSatKey (void) const |
string | GetSatNA (void) const |
int | GetSatBase (void) const |
int | GetSubSatBase (void) const |
size_t | GetNAIndex (void) const |
size_t | GetNAVersion (void) const |
size_t | GetSeqIndex (void) const |
size_t | GetFilterIndex (void) const |
void | SetSatNA (CTempString acc) |
void | SetNAIndex (size_t na_index) |
void | SetNAVersion (size_t na_version) |
void | SetSeqAndFilterIndex (size_t seq_index, size_t filter_index) |
CSeq_id_Handle | GetSeqId (void) const |
string | GetAccession (void) const |
bool | IsPrimaryTrack () const |
bool | IsPrimaryTrackGraph () const |
bool | IsPrimaryTrackFeat () const |
void | SetPrimaryTrackFeat () |
void | SetPrimaryTrackGraph () |
CSNPBlobId (const CTempString &str) | |
CSNPBlobId (const CSNPFileInfo &file, const objects::CSeq_id_Handle &seq_id, size_t filter_index) | |
CSNPBlobId (const objects::CSNPDbSeqIterator &seq, size_t filter_index) | |
CSNPBlobId (const CSNPFileInfo &file, size_t seq_index, size_t filter_index) | |
~CSNPBlobId (void) | |
string | ToString (void) const |
Get string representation of blob id. More... | |
void | FromString (CTempString str) |
bool | FromSatString (CTempString str) |
bool | IsSatId (void) const |
Int4 | GetSat (void) const |
Int4 | GetSubSat (void) const |
Int4 | GetSatKey (void) const |
bool | IsValidSat (void) const |
bool | IsValidSubSat (void) const |
bool | IsValidSatKey (void) const |
string | GetSatNA (void) const |
int | GetSatBase (void) const |
int | GetSubSatBase (void) const |
size_t | GetNAIndex (void) const |
size_t | GetNAVersion (void) const |
size_t | GetSeqIndex (void) const |
size_t | GetFilterIndex (void) const |
void | SetSatNA (CTempString acc) |
void | SetNAIndex (size_t na_index) |
void | SetNAVersion (size_t na_version) |
void | SetSeqAndFilterIndex (size_t seq_index, size_t filter_index) |
objects::CSeq_id_Handle | GetSeqId (void) const |
string | GetAccession (void) const |
bool | IsPrimaryTrack () const |
bool | IsPrimaryTrackGraph () const |
bool | IsPrimaryTrackFeat () const |
void | SetPrimaryTrackFeat () |
void | SetPrimaryTrackGraph () |
Public Member Functions inherited from CBlobId | |
virtual | ~CBlobId (void) |
Public Member Functions inherited from CObject | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (const CObject &src) THROWS_NONE |
Assignment operator. More... | |
bool | CanBeDeleted (void) const THROWS_NONE |
Check if object can be deleted. More... | |
bool | IsAllocatedInPool (void) const THROWS_NONE |
Check if object is allocated in memory pool (not system heap) More... | |
bool | Referenced (void) const THROWS_NONE |
Check if object is referenced. More... | |
bool | ReferencedOnlyOnce (void) const THROWS_NONE |
Check if object is referenced only once. More... | |
void | AddReference (void) const |
Add reference to object. More... | |
void | RemoveReference (void) const |
Remove reference to object. More... | |
void | ReleaseReference (void) const |
Remove reference without deleting object. More... | |
virtual void | DoNotDeleteThisObject (void) |
Mark this object as not allocated in heap – do not delete this object. More... | |
virtual void | DoDeleteThisObject (void) |
Mark this object as allocated in heap – object can be deleted. More... | |
void * | operator new (size_t size) |
Define new operator for memory allocation. More... | |
void * | operator new[] (size_t size) |
Define new[] operator for 'array' memory allocation. More... | |
void | operator delete (void *ptr) |
Define delete operator for memory deallocation. More... | |
void | operator delete[] (void *ptr) |
Define delete[] operator for memory deallocation. More... | |
void * | operator new (size_t size, void *place) |
Define new operator. More... | |
void | operator delete (void *ptr, void *place) |
Define delete operator. More... | |
void * | operator new (size_t size, CObjectMemoryPool *place) |
Define new operator using memory pool. More... | |
void | operator delete (void *ptr, CObjectMemoryPool *place) |
Define delete operator. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
Public Member Functions inherited from CDebugDumpable | |
CDebugDumpable (void) | |
virtual | ~CDebugDumpable (void) |
void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
void | DumpToConsole (void) const |
Protected Attributes | |
Uint4 | m_NAIndex |
Uint2 | m_NAVersion |
bool | m_IsPrimaryTrack |
bool | m_IsPrimaryTrackGraph |
Uint4 | m_SeqIndex |
Uint4 | m_FilterIndex |
string | m_Accession |
CSeq_id_Handle | m_SeqId |
objects::CSeq_id_Handle | m_SeqId |
Additional Inherited Members | |
Public Types inherited from CObject | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
Static Public Attributes inherited from CObject | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Protected Member Functions inherited from CBlobId | |
bool | LessByTypeId (const CBlobId &id2) const |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Definition at line 54 of file snploader_impl.hpp.
|
explicit |
Definition at line 170 of file snp_client.cpp.
References FromString(), and str().
CSNPBlobId::CSNPBlobId | ( | const CSNPFileInfo & | file, |
const CSeq_id_Handle & | seq_id, | ||
size_t | filter_index | ||
) |
Definition at line 176 of file snp_client.cpp.
CSNPBlobId::CSNPBlobId | ( | const CSNPDbSeqIterator & | seq, |
size_t | filter_index | ||
) |
Definition at line 209 of file snp_client.cpp.
References CSNPDbSeqIterator::GetDb(), CSNPDb_Impl::GetDbPath(), CSNPDbSeqIterator::GetVDBSeqIndex(), SetSatNA(), and SetSeqAndFilterIndex().
CSNPBlobId::CSNPBlobId | ( | const CSNPFileInfo & | file, |
size_t | seq_index, | ||
size_t | filter_index | ||
) |
Definition at line 190 of file snp_client.cpp.
References file, m_Accession, SetSatNA(), and SetSeqAndFilterIndex().
CSNPBlobId::~CSNPBlobId | ( | void | ) |
Definition at line 216 of file snp_client.cpp.
|
explicit |
CSNPBlobId::CSNPBlobId | ( | const CSNPFileInfo & | file, |
const objects::CSeq_id_Handle & | seq_id, | ||
size_t | filter_index | ||
) |
CSNPBlobId::CSNPBlobId | ( | const objects::CSNPDbSeqIterator & | seq, |
size_t | filter_index | ||
) |
CSNPBlobId::CSNPBlobId | ( | const CSNPFileInfo & | file, |
size_t | seq_index, | ||
size_t | filter_index | ||
) |
CSNPBlobId::~CSNPBlobId | ( | void | ) |
bool CSNPBlobId::FromSatString | ( | CTempString | str | ) |
Definition at line 418 of file snp_client.cpp.
References _ASSERT, NStr::fConvErr_NoThrow, isdigit(), IsSatId(), IsValidFilterIndex(), IsValidNAIndex(), IsValidNAVersion(), IsValidSeqIndex(), kSeqIndexCount, kSNPSatBase, kSNPSatPrimary, kSNPSubSatGraph, m_Accession, m_FilterIndex, m_IsPrimaryTrack, m_IsPrimaryTrackGraph, m_NAIndex, m_NAVersion, m_SeqId, m_SeqIndex, NPOS, CSeq_id_Handle::Reset(), and str().
Referenced by FromString().
bool CSNPBlobId::FromSatString | ( | CTempString | str | ) |
void CSNPBlobId::FromString | ( | CTempString | str | ) |
Definition at line 469 of file snp_client.cpp.
References _ASSERT, FromSatString(), CSeq_id_Handle::GetHandle(), IsSatId(), kFileEnd, m_Accession, m_FilterIndex, m_IsPrimaryTrack, m_IsPrimaryTrackGraph, m_NAIndex, m_NAVersion, m_SeqId, m_SeqIndex, NCBI_THROW_FMT, NPOS, CSeq_id_Handle::Reset(), s_ExtractFilterIndex(), SetSeqAndFilterIndex(), and str().
Referenced by CSNPBlobId().
void CSNPBlobId::FromString | ( | CTempString | str | ) |
string CSNPBlobId::GetAccession | ( | void | ) | const |
Definition at line 376 of file snp_client.cpp.
References GetSatNA(), and m_Accession.
Referenced by CSNPDataLoader_Impl::GetFileInfo(), and CSNPClient::GetSeqInfo().
string CSNPBlobId::GetAccession | ( | void | ) | const |
|
inline |
Definition at line 117 of file snploader_impl.hpp.
References m_FilterIndex.
Referenced by GetSatKey(), IsValidSatKey(), CSNPSeqInfo::SetFromBlobId(), and ToString().
|
inline |
Definition at line 148 of file snp_client.hpp.
References m_FilterIndex.
|
inline |
Definition at line 105 of file snploader_impl.hpp.
References m_NAIndex.
Referenced by GetSatNA(), GetSubSat(), and IsValidSubSat().
|
inline |
Definition at line 136 of file snp_client.hpp.
References m_NAIndex.
|
inline |
Definition at line 109 of file snploader_impl.hpp.
References m_NAVersion.
Referenced by GetSat(), GetSatNA(), and IsValidSat().
|
inline |
Definition at line 140 of file snp_client.hpp.
References m_NAVersion.
Int4 CSNPBlobId::GetSat | ( | void | ) | const |
Definition at line 283 of file snp_client.cpp.
References _ASSERT, GetNAVersion(), GetSatBase(), and IsValidNAVersion().
Referenced by ToString().
Int4 CSNPBlobId::GetSat | ( | void | ) | const |
int CSNPBlobId::GetSatBase | ( | void | ) | const |
Definition at line 258 of file snp_client.cpp.
References IsPrimaryTrack(), kSNPSatBase, and kSNPSatPrimary.
Referenced by GetSat().
int CSNPBlobId::GetSatBase | ( | void | ) | const |
Int4 CSNPBlobId::GetSatKey | ( | void | ) | const |
Definition at line 297 of file snp_client.cpp.
References _ASSERT, GetFilterIndex(), GetSeqIndex(), IsValidFilterIndex(), IsValidSeqIndex(), and kSeqIndexCount.
Referenced by ToString().
Int4 CSNPBlobId::GetSatKey | ( | void | ) | const |
string CSNPBlobId::GetSatNA | ( | void | ) | const |
Definition at line 335 of file snp_client.cpp.
References GetNAIndex(), GetNAVersion(), and str().
Referenced by GetAccession().
string CSNPBlobId::GetSatNA | ( | void | ) | const |
CSeq_id_Handle CSNPBlobId::GetSeqId | ( | void | ) | const |
Definition at line 369 of file snp_client.cpp.
References _ASSERT, IsSatId(), and m_SeqId.
Referenced by CSNPFileInfo::GetSeqInfo().
objects::CSeq_id_Handle CSNPBlobId::GetSeqId | ( | void | ) | const |
|
inline |
Definition at line 113 of file snploader_impl.hpp.
References m_SeqIndex.
Referenced by GetSatKey(), CSNPFileInfo::GetSeqInfo(), and IsValidSatKey().
|
inline |
Definition at line 144 of file snp_client.hpp.
References m_SeqIndex.
Int4 CSNPBlobId::GetSubSat | ( | void | ) | const |
Definition at line 290 of file snp_client.cpp.
References _ASSERT, GetNAIndex(), GetSubSatBase(), and IsValidNAIndex().
Referenced by ToString().
Int4 CSNPBlobId::GetSubSat | ( | void | ) | const |
int CSNPBlobId::GetSubSatBase | ( | void | ) | const |
Definition at line 264 of file snp_client.cpp.
References IsPrimaryTrackGraph(), and kSNPSubSatGraph.
Referenced by GetSubSat().
int CSNPBlobId::GetSubSatBase | ( | void | ) | const |
|
inline |
Definition at line 131 of file snploader_impl.hpp.
References m_IsPrimaryTrack.
Referenced by GetSatBase(), IsPrimaryTrackFeat(), CSNPSeqInfo::SetFromBlobId(), SetPrimaryTrackFeat(), and SetPrimaryTrackGraph().
|
inline |
Definition at line 162 of file snp_client.hpp.
References m_IsPrimaryTrack.
|
inline |
Definition at line 139 of file snploader_impl.hpp.
References IsPrimaryTrack(), and IsPrimaryTrackGraph().
|
inline |
Definition at line 170 of file snp_client.hpp.
References IsPrimaryTrack(), and IsPrimaryTrackGraph().
|
inline |
Definition at line 135 of file snploader_impl.hpp.
References m_IsPrimaryTrackGraph.
Referenced by GetSubSatBase(), IsPrimaryTrackFeat(), and CSNPSeqInfo::SetFromBlobId().
|
inline |
Definition at line 166 of file snp_client.hpp.
References m_IsPrimaryTrackGraph.
bool CSNPBlobId::IsSatId | ( | void | ) | const |
Definition at line 277 of file snp_client.cpp.
References m_NAIndex.
Referenced by FromSatString(), FromString(), GetSeqId(), CSNPFileInfo::GetSeqInfo(), and ToString().
bool CSNPBlobId::IsSatId | ( | void | ) | const |
|
static |
Definition at line 239 of file snp_client.cpp.
References kFilterIndexCount.
Referenced by FromSatString(), GetSatKey(), IsValidSatKey(), s_ExtractFilterIndex(), CSNPSeqInfo::SetFilterIndex(), SetSeqAndFilterIndex(), and sx_ExtractFilterIndex().
|
inlinestatic |
Definition at line 97 of file snploader_impl.hpp.
References ParseNA().
|
inlinestatic |
Definition at line 127 of file snp_client.hpp.
References ParseNA().
Definition at line 90 of file snploader_impl.hpp.
References IsValidNAIndex(), and IsValidNAVersion().
Referenced by CSNPClient::WhatNACanProcess(), and CSNPFileInfo::x_Initialize().
Definition at line 119 of file snp_client.hpp.
References IsValidNAIndex(), and IsValidNAVersion().
|
static |
Definition at line 221 of file snp_client.cpp.
Referenced by FromSatString(), GetSubSat(), IsValidNA(), IsValidSubSat(), ParseNA(), and SetNAIndex().
|
static |
Definition at line 227 of file snp_client.cpp.
References kNAVersionMax, and kNAVersionMin.
Referenced by FromSatString(), GetSat(), IsValidNA(), IsValidSat(), ParseNA(), and SetNAVersion().
bool CSNPBlobId::IsValidSat | ( | void | ) | const |
Definition at line 305 of file snp_client.cpp.
References GetNAVersion(), and IsValidNAVersion().
bool CSNPBlobId::IsValidSat | ( | void | ) | const |
bool CSNPBlobId::IsValidSatKey | ( | void | ) | const |
Definition at line 362 of file snp_client.cpp.
References GetFilterIndex(), GetSeqIndex(), IsValidFilterIndex(), and IsValidSeqIndex().
bool CSNPBlobId::IsValidSatKey | ( | void | ) | const |
|
static |
Definition at line 233 of file snp_client.cpp.
References kSeqIndexCount.
Referenced by FromSatString(), GetSatKey(), IsValidSatKey(), and SetSeqAndFilterIndex().
bool CSNPBlobId::IsValidSubSat | ( | void | ) | const |
Definition at line 252 of file snp_client.cpp.
References GetNAIndex(), and IsValidNAIndex().
bool CSNPBlobId::IsValidSubSat | ( | void | ) | const |
Implements CBlobId.
Definition at line 556 of file snploader_impl.cpp.
References m_Accession, m_FilterIndex, m_IsPrimaryTrack, m_IsPrimaryTrackGraph, m_NAIndex, m_NAVersion, m_SeqId, and m_SeqIndex.
Reimplemented from CBlobId.
Definition at line 584 of file snploader_impl.cpp.
References m_Accession, m_FilterIndex, m_IsPrimaryTrack, m_IsPrimaryTrackGraph, m_NAIndex, m_NAVersion, m_SeqId, and m_SeqIndex.
|
static |
Definition at line 311 of file snp_client.cpp.
References NStr::fConvErr_NoThrow, IsValidNAIndex(), IsValidNAVersion(), CTempString::size(), and CTempString::substr().
Referenced by IsValidNA(), and SetSatNA().
|
static |
void CSNPBlobId::SetNAIndex | ( | size_t | na_index | ) |
Definition at line 245 of file snp_client.cpp.
References _ASSERT, IsValidNAIndex(), and m_NAIndex.
Referenced by SetSatNA().
void CSNPBlobId::SetNAIndex | ( | size_t | na_index | ) |
void CSNPBlobId::SetNAVersion | ( | size_t | na_version | ) |
Definition at line 270 of file snp_client.cpp.
References _ASSERT, IsValidNAVersion(), and m_NAVersion.
Referenced by SetSatNA().
void CSNPBlobId::SetNAVersion | ( | size_t | na_version | ) |
void CSNPBlobId::SetPrimaryTrackFeat | ( | void | ) |
Definition at line 387 of file snp_client.cpp.
References _ASSERT, IsPrimaryTrack(), m_IsPrimaryTrack, and m_IsPrimaryTrackGraph.
Referenced by CSNPClient::GetAnnotInfo().
void CSNPBlobId::SetPrimaryTrackFeat | ( | ) |
void CSNPBlobId::SetPrimaryTrackGraph | ( | void | ) |
Definition at line 395 of file snp_client.cpp.
References _ASSERT, IsPrimaryTrack(), m_IsPrimaryTrack, and m_IsPrimaryTrackGraph.
Referenced by CSNPClient::GetAnnotInfo().
void CSNPBlobId::SetPrimaryTrackGraph | ( | ) |
void CSNPBlobId::SetSatNA | ( | CTempString | acc | ) |
Definition at line 344 of file snp_client.cpp.
References ParseNA(), SetNAIndex(), and SetNAVersion().
Referenced by CSNPBlobId().
void CSNPBlobId::SetSatNA | ( | CTempString | acc | ) |
void CSNPBlobId::SetSeqAndFilterIndex | ( | size_t | seq_index, |
size_t | filter_index | ||
) |
Definition at line 352 of file snp_client.cpp.
References _ASSERT, IsValidFilterIndex(), IsValidSeqIndex(), m_FilterIndex, and m_SeqIndex.
Referenced by CSNPBlobId(), and FromString().
void CSNPBlobId::SetSeqAndFilterIndex | ( | size_t | seq_index, |
size_t | filter_index | ||
) |
|
virtual |
Get string representation of blob id.
Should be unique for all blob ids from the same data loader.
Implements CBlobId.
Definition at line 403 of file snp_client.cpp.
References GetFilterIndex(), GetSat(), GetSatKey(), GetSubSat(), IsSatId(), kFileEnd, kFilterPrefixChar, m_Accession, m_SeqId, and out().
Referenced by CSNPClient::GetAnnotInfo().
|
virtual |
Get string representation of blob id.
Should be unique for all blob ids from the same data loader.
Implements CBlobId.
|
protected |
Definition at line 157 of file snploader_impl.hpp.
Referenced by CSNPBlobId(), FromSatString(), FromString(), GetAccession(), operator<(), operator==(), and ToString().
|
protected |
Definition at line 154 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), GetFilterIndex(), operator<(), operator==(), and SetSeqAndFilterIndex().
|
protected |
Definition at line 151 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), IsPrimaryTrack(), operator<(), operator==(), SetPrimaryTrackFeat(), and SetPrimaryTrackGraph().
|
protected |
Definition at line 152 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), IsPrimaryTrackGraph(), operator<(), operator==(), SetPrimaryTrackFeat(), and SetPrimaryTrackGraph().
|
protected |
Definition at line 149 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), GetNAIndex(), IsSatId(), operator<(), operator==(), and SetNAIndex().
|
protected |
Definition at line 150 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), GetNAVersion(), operator<(), operator==(), and SetNAVersion().
|
protected |
Definition at line 159 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), GetSeqId(), operator<(), operator==(), and ToString().
|
protected |
Definition at line 190 of file snp_client.hpp.
|
protected |
Definition at line 153 of file snploader_impl.hpp.
Referenced by FromSatString(), FromString(), GetSeqIndex(), operator<(), operator==(), and SetSeqAndFilterIndex().