NCBI C++ ToolKit
|
Search Toolkit Book for CCSraDb_Impl
#include <sra/readers/sra/csraread.hpp>
Classes | |
struct | SAlnTableCursor |
struct | SRefInfo |
struct | SRefTableCursor |
struct | SSeqTableCursor |
Public Types | |
typedef list< SRefInfo > | TRefInfoList |
typedef map< string, TRefInfoList::iterator, PNocase > | TRefInfoMapByName |
typedef map< CSeq_id_Handle, TRefInfoList::iterator > | TRefInfoMapBySeq_id |
typedef vector< string > | TSpotGroups |
![]() | |
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... | |
![]() | |
enum | ERefIdType { eRefId_SEQ_ID , eRefId_gnl_NAME } |
enum | EPathInIdType { ePathInId_config , ePathInId_yes , ePathInId_no } |
enum | EAlignType { fPrimaryAlign = 1<<0 , fSecondaryAlign = 1<<1 , fAnyAlign = fPrimaryAlign | fSecondaryAlign } |
typedef EAlignType | TAlignType |
Public Member Functions | |
CCSraDb_Impl (CVDBMgr &mgr, const string &csra_path, IIdMapper *ref_id_mapper, ERefIdType ref_id_type, const string &sra_id_part) | |
virtual | ~CCSraDb_Impl (void) |
const TRefInfoList & | GetRefInfoList (void) const |
const TRefInfoMapByName & | GetRefInfoMapByName (void) const |
const TRefInfoMapBySeq_id & | GetRefInfoMapBySeq_id (void) const |
TSeqPos | GetRowSize (void) const |
void | GetSpotGroups (TSpotGroups &spot_groups) |
const string & | GetCSraPath (void) const |
const string & | GetSraIdPart (void) const |
void | SetSraIdPart (const string &s) |
CRef< CSeq_id > | MakeShortReadId (TVDBRowId id1, INSDC_coord_one id2) const |
void | SetShortReadId (string &str, TVDBRowId id1, INSDC_coord_one id2) const |
![]() | |
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... | |
![]() | |
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 Member Functions | |
void | x_CalcSeqLength (const SRefInfo &info) |
CRef< SRefTableCursor > | Ref (void) |
CRef< SAlnTableCursor > | Aln (bool is_secondary) |
CRef< SSeqTableCursor > | Seq (void) |
void | Put (CRef< SRefTableCursor > &curs) |
void | Put (CRef< SAlnTableCursor > &curs) |
void | Put (CRef< SSeqTableCursor > &curs) |
void | OpenRefTable (void) |
void | OpenAlnTable (bool is_secondary) |
void | OpenSeqTable (void) |
const CVDBTable & | RefTable (void) |
const CVDBTable & | AlnTable (bool is_secondary) |
const CVDBTable & | SeqTable (void) |
void | x_MakeRefSeq_ids (SRefInfo &info, IIdMapper *ref_id_mapper, int ref_id_type) |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Friends | |
class | CCSraRefSeqIterator |
class | CCSraAlignIterator |
class | CCSraShortReadIterator |
struct | SSeqTableCursor |
Additional Inherited Members | |
![]() | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
![]() | |
static void | EnableDebugDump (bool on) |
![]() | |
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... | |
Definition at line 87 of file csraread.hpp.
typedef list<SRefInfo> CCSraDb_Impl::TRefInfoList |
Definition at line 115 of file csraread.hpp.
typedef map<string, TRefInfoList::iterator, PNocase> CCSraDb_Impl::TRefInfoMapByName |
Definition at line 116 of file csraread.hpp.
typedef map<CSeq_id_Handle, TRefInfoList::iterator> CCSraDb_Impl::TRefInfoMapBySeq_id |
Definition at line 117 of file csraread.hpp.
typedef vector<string> CCSraDb_Impl::TSpotGroups |
Definition at line 133 of file csraread.hpp.
CCSraDb_Impl::CCSraDb_Impl | ( | CVDBMgr & | mgr, |
const string & | csra_path, | ||
IIdMapper * | ref_id_mapper, | ||
ERefIdType | ref_id_type, | ||
const string & | sra_id_part | ||
) |
Definition at line 275 of file csraread.cpp.
References _ASSERT, CSraException::eDataError, CSraException::eNotFoundTable, CSraException::GetErrCode(), CSeq_id_Handle::GetHandle(), CSraException::GetParam(), CSraException::GetRC(), Info(), info, map_checker< Container >::insert(), ITERATE, kInvalidSeqPos, LOG_POST_X, m_Db, m_RefList, m_RefMapByName, m_RefMapBySeq_id, m_RowSize, m_SraIdPart, NCBI_THROW3, NON_CONST_ITERATE, Put(), compile_time_bits::range(), Ref(), SeqTable(), swap(), and x_MakeRefSeq_ids().
|
virtual |
Definition at line 374 of file csraread.cpp.
|
protected |
Definition at line 548 of file csraread.cpp.
References AlnTable(), and m_Aln.
Referenced by CCSraAlignIterator::CCSraAlignIterator(), CCSraShortReadIterator::GetRefSeqIter(), and CCSraAlignIterator::x_Settle().
Definition at line 186 of file csraread.hpp.
References m_AlnTable, OpenAlnTable(), and table.
Referenced by Aln().
|
inline |
Definition at line 119 of file csraread.hpp.
References m_RefList.
|
inline |
Definition at line 122 of file csraread.hpp.
References m_RefMapByName.
|
inline |
Definition at line 125 of file csraread.hpp.
References m_RefMapBySeq_id.
|
inline |
Definition at line 129 of file csraread.hpp.
References m_RowSize.
Referenced by CCSraRefSeqIterator::GetAlignCountAtPos(), CCSraRefSeqIterator::GetAlnOverStarts(), CCSraRefSeqIterator::GetAlnOverToOpen(), CCSraRefSeqIterator::GetRefLiterals(), CCSraDb::GetRowSize(), CCSraAlignIterator::Select(), and x_CalcSeqLength().
void CCSraDb_Impl::GetSpotGroups | ( | TSpotGroups & | spot_groups | ) |
Definition at line 424 of file csraread.cpp.
References i, m_Db, and names.
Referenced by CCSraDb::GetSpotGroups().
Definition at line 140 of file csraread.hpp.
References m_SraIdPart.
CRef< CSeq_id > CCSraDb_Impl::MakeShortReadId | ( | TVDBRowId | id1, |
INSDC_coord_one | id2 | ||
) | const |
Definition at line 1319 of file csraread.cpp.
References CDbtag_Base::SetDb(), CSeq_id_Base::SetGeneral(), SetShortReadId(), and CDbtag_Base::SetTag().
Referenced by CCSraAlignIterator::GetMateShortSeq_id(), CCSraAlignIterator::GetShortSeq_id(), and CCSraShortReadIterator::GetShortSeq_id().
|
protected |
Definition at line 512 of file csraread.cpp.
References m_AlnTable, m_Db, and m_TableMutex.
Referenced by AlnTable().
|
protected |
Definition at line 503 of file csraread.cpp.
References m_Db, m_RefTable, and m_TableMutex.
Referenced by RefTable().
|
protected |
Definition at line 523 of file csraread.cpp.
References GetCSraPath(), m_Db, m_Mgr, m_SeqTable, and m_TableMutex.
Referenced by SeqTable().
|
protected |
Definition at line 576 of file csraread.cpp.
References m_Aln.
|
protected |
Definition at line 570 of file csraread.cpp.
References m_Ref.
Referenced by CCSraDb_Impl(), CCSraRefSeqIterator::GetAlignCountAtPos(), CCSraRefSeqIterator::GetAlnOverStarts(), CCSraRefSeqIterator::GetCoverageGraph(), CCSraRefSeqIterator::GetEstimatedNumberOfAlignments(), CCSraRefSeqIterator::GetRefLiterals(), CCSraShortReadIterator::GetRefSeqIter(), CCSraAlignIterator::Reset(), CCSraShortReadIterator::Reset(), x_CalcSeqLength(), and CCSraAlignIterator::x_Settle().
|
protected |
Definition at line 584 of file csraread.cpp.
References m_Seq.
|
protected |
Definition at line 537 of file csraread.cpp.
References m_Ref, and RefTable().
Referenced by CCSraDb_Impl(), and x_CalcSeqLength().
Definition at line 179 of file csraread.hpp.
References m_RefTable, OpenRefTable(), and table.
Referenced by Ref().
|
protected |
Definition at line 559 of file csraread.cpp.
References m_Seq, SeqTable(), and SSeqTableCursor.
Referenced by CCSraShortReadIterator::x_Init().
Definition at line 193 of file csraread.hpp.
References m_SeqTable, OpenSeqTable(), and table.
Referenced by CCSraDb_Impl(), and Seq().
void CCSraDb_Impl::SetShortReadId | ( | string & | str, |
TVDBRowId | id1, | ||
INSDC_coord_one | id2 | ||
) | const |
Definition at line 1330 of file csraread.cpp.
References m_SraIdPart, and str().
Referenced by CCSraAlignIterator::GetMatchAlign(), and MakeShortReadId().
Definition at line 143 of file csraread.hpp.
References m_SraIdPart.
Definition at line 590 of file csraread.cpp.
References GetRowSize(), info, Put(), and Ref().
Referenced by CCSraRefSeqIterator::GetSeqLength().
|
protected |
Definition at line 437 of file csraread.cpp.
References CSeq_id_Base::e_General, CSeq_id_Base::e_Local, CSerialObject::Equals(), SCSraDb_Defs::eRefId_SEQ_ID, info, CSeq_id_Base::IsLocal(), m_SraIdPart, IIdMapper::MapObject(), NON_CONST_ITERATE, NPOS, and CSeq_id::ParseIDs().
Referenced by CCSraDb_Impl().
|
friend |
Definition at line 152 of file csraread.hpp.
|
friend |
Definition at line 151 of file csraread.hpp.
|
friend |
Definition at line 153 of file csraread.hpp.
|
friend |
Definition at line 163 of file csraread.hpp.
Referenced by Seq().
|
private |
Definition at line 218 of file csraread.hpp.
|
private |
Definition at line 214 of file csraread.hpp.
Referenced by AlnTable(), and OpenAlnTable().
|
private |
Definition at line 208 of file csraread.hpp.
Referenced by GetCSraPath().
|
private |
Definition at line 207 of file csraread.hpp.
Referenced by CCSraDb_Impl(), GetSpotGroups(), OpenAlnTable(), OpenRefTable(), and OpenSeqTable().
|
private |
Definition at line 206 of file csraread.hpp.
Referenced by OpenSeqTable().
|
private |
Definition at line 212 of file csraread.hpp.
|
private |
Definition at line 217 of file csraread.hpp.
|
private |
Definition at line 222 of file csraread.hpp.
Referenced by CCSraDb_Impl(), and GetRefInfoList().
|
private |
Definition at line 223 of file csraread.hpp.
Referenced by CCSraDb_Impl(), and GetRefInfoMapByName().
|
private |
Definition at line 224 of file csraread.hpp.
Referenced by CCSraDb_Impl(), and GetRefInfoMapBySeq_id().
|
private |
Definition at line 213 of file csraread.hpp.
Referenced by OpenRefTable(), and RefTable().
|
private |
Definition at line 221 of file csraread.hpp.
Referenced by CCSraDb_Impl(), and GetRowSize().
|
private |
Definition at line 219 of file csraread.hpp.
|
private |
Definition at line 215 of file csraread.hpp.
Referenced by OpenSeqTable(), and SeqTable().
|
private |
Definition at line 209 of file csraread.hpp.
Referenced by CCSraDb_Impl(), GetSraIdPart(), SetShortReadId(), SetSraIdPart(), and x_MakeRefSeq_ids().
|
private |
Definition at line 211 of file csraread.hpp.
Referenced by OpenAlnTable(), OpenRefTable(), and OpenSeqTable().