NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
CCSRAFileInfo Class Reference

Search Toolkit Book for CCSRAFileInfo

#include <sra/data_loaders/csra/impl/csraloader_impl.hpp>

+ Inheritance diagram for CCSRAFileInfo:
+ Collaboration diagram for CCSRAFileInfo:

Public Types

typedef CCSRADataLoader::TAnnotNames TAnnotNames
 
- 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< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 

Public Member Functions

 CCSRAFileInfo (CCSRADataLoader_Impl &impl, const string &csra, CCSraDb::ERefIdType ref_id_type)
 
const stringGetCSRAName (void) const
 
const stringGetBaseAnnotName (void) const
 
string GetAnnotName (const string &spot_group, ECSRAAnnotChunkIdType type) const
 
string GetAlignAnnotName (void) const
 
string GetAlignAnnotName (const string &spot_group) const
 
string GetPileupAnnotName (void) const
 
string GetPileupAnnotName (const string &spot_group) const
 
CCSraDb::ERefIdType GetRefIdType (void) const
 
int GetMinMapQuality (void) const
 
bool GetPileupGraphs (void) const
 
bool GetQualityGraphs (void) const
 
bool IsValidReadId (TVDBRowId spot_id, Uint4 read_id, CRef< CCSRARefSeqInfo > *ref_ptr=0, TSeqPos *ref_pos_ptr=0)
 
void GetAnnotBlobId (CRef< CCSRABlobId > &ret, const CSeq_id_Handle &idh)
 
CRef< CCSRARefSeqInfoGetRefSeqInfo (const CSeq_id_Handle &seq_id)
 
CRef< CCSRARefSeqInfoGetRefSeqInfo (const CCSRABlobId &blob_id)
 
CCSraDbGetDb (void)
 
 operator CCSraDb & (void)
 
void AddRefSeq (const string &refseq_label, const CSeq_id_Handle &refseq_id)
 
const vector< string > & GetSeparateSpotGroups (void) const
 
void GetPossibleAnnotNames (TAnnotNames &names) const
 
void LoadReadsBlob (const CCSRABlobId &blob_id, CTSE_LoadLock &load_lock)
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (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 Types

typedef map< CSeq_id_Handle, CRef< CCSRARefSeqInfo > > TRefSeqs
 

Protected Member Functions

void x_Initialize (CCSRADataLoader_Impl &impl, const string &csra, CCSraDb::ERefIdType ref_id_type)
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Protected Attributes

string m_CSRAName
 
CCSraDb::ERefIdType m_RefIdType
 
string m_AnnotName
 
int m_MinMapQuality
 
bool m_PileupGraphs
 
bool m_QualityGraphs
 
CCSraDb m_CSRADb
 
vector< stringm_SeparateSpotGroups
 
TRefSeqs m_RefSeqs
 

Friends

class CCSRADataLoader_Impl
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
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 Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- 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...
 

Detailed Description

Definition at line 376 of file csraloader_impl.hpp.

Member Typedef Documentation

◆ TAnnotNames

Definition at line 446 of file csraloader_impl.hpp.

◆ TRefSeqs

Definition at line 455 of file csraloader_impl.hpp.

Constructor & Destructor Documentation

◆ CCSRAFileInfo()

CCSRAFileInfo::CCSRAFileInfo ( CCSRADataLoader_Impl impl,
const string csra,
CCSraDb::ERefIdType  ref_id_type 
)

Member Function Documentation

◆ AddRefSeq()

void CCSRAFileInfo::AddRefSeq ( const string refseq_label,
const CSeq_id_Handle refseq_id 
)

Definition at line 1228 of file csraloader_impl.cpp.

References GetDebugLevel(), Info(), LOG_POST_X, m_CSRAName, and m_RefSeqs.

Referenced by CCSRAFileInfo(), and GetRefSeqInfo().

◆ GetAlignAnnotName() [1/2]

string CCSRAFileInfo::GetAlignAnnotName ( const string spot_group) const

Definition at line 1189 of file csraloader_impl.cpp.

References eCSRAAnnotChunk_align, and GetAnnotName().

◆ GetAlignAnnotName() [2/2]

string CCSRAFileInfo::GetAlignAnnotName ( void  ) const

◆ GetAnnotBlobId()

void CCSRAFileInfo::GetAnnotBlobId ( CRef< CCSRABlobId > &  ret,
const CSeq_id_Handle idh 
)

◆ GetAnnotName()

string CCSRAFileInfo::GetAnnotName ( const string spot_group,
ECSRAAnnotChunkIdType  type 
) const

◆ GetBaseAnnotName()

const string& CCSRAFileInfo::GetBaseAnnotName ( void  ) const
inline

Definition at line 387 of file csraloader_impl.hpp.

References m_AnnotName.

Referenced by GetAnnotName().

◆ GetCSRAName()

const string& CCSRAFileInfo::GetCSRAName ( void  ) const
inline

Definition at line 383 of file csraloader_impl.hpp.

References m_CSRAName.

Referenced by GetRefSeqInfo(), and CCSRARefSeqInfo::LoadAnnotAlignChunk().

◆ GetDb()

CCSraDb& CCSRAFileInfo::GetDb ( void  )
inline

◆ GetMinMapQuality()

int CCSRAFileInfo::GetMinMapQuality ( void  ) const
inline

Definition at line 402 of file csraloader_impl.hpp.

References m_MinMapQuality.

◆ GetPileupAnnotName() [1/2]

string CCSRAFileInfo::GetPileupAnnotName ( const string spot_group) const

Definition at line 1201 of file csraloader_impl.cpp.

References eCSRAAnnotChunk_pileup_graph, and GetAnnotName().

◆ GetPileupAnnotName() [2/2]

string CCSRAFileInfo::GetPileupAnnotName ( void  ) const

◆ GetPileupGraphs()

bool CCSRAFileInfo::GetPileupGraphs ( void  ) const
inline

◆ GetPossibleAnnotNames()

void CCSRAFileInfo::GetPossibleAnnotNames ( TAnnotNames names) const

◆ GetQualityGraphs()

bool CCSRAFileInfo::GetQualityGraphs ( void  ) const
inline

Definition at line 410 of file csraloader_impl.hpp.

References m_QualityGraphs.

◆ GetRefIdType()

CCSraDb::ERefIdType CCSRAFileInfo::GetRefIdType ( void  ) const
inline

Definition at line 398 of file csraloader_impl.hpp.

References m_RefIdType.

◆ GetRefSeqInfo() [1/2]

CRef<CCSRARefSeqInfo> CCSRAFileInfo::GetRefSeqInfo ( const CCSRABlobId blob_id)
inline

Definition at line 424 of file csraloader_impl.hpp.

References GetRefSeqInfo(), and CCSRABlobId::m_SeqId.

◆ GetRefSeqInfo() [2/2]

CRef< CCSRARefSeqInfo > CCSRAFileInfo::GetRefSeqInfo ( const CSeq_id_Handle seq_id)

◆ GetSeparateSpotGroups()

const vector<string>& CCSRAFileInfo::GetSeparateSpotGroups ( void  ) const
inline

◆ IsValidReadId()

bool CCSRAFileInfo::IsValidReadId ( TVDBRowId  spot_id,
Uint4  read_id,
CRef< CCSRARefSeqInfo > *  ref_ptr = 0,
TSeqPos ref_pos_ptr = 0 
)

◆ LoadReadsBlob()

void CCSRAFileInfo::LoadReadsBlob ( const CCSRABlobId blob_id,
CTSE_LoadLock load_lock 
)

◆ operator CCSraDb &()

CCSRAFileInfo::operator CCSraDb & ( void  )
inline

Definition at line 433 of file csraloader_impl.hpp.

References GetDb().

◆ x_Initialize()

void CCSRAFileInfo::x_Initialize ( CCSRADataLoader_Impl impl,
const string csra,
CCSraDb::ERefIdType  ref_id_type 
)
protected

Friends And Related Function Documentation

◆ CCSRADataLoader_Impl

friend class CCSRADataLoader_Impl
friend

Definition at line 453 of file csraloader_impl.hpp.

Member Data Documentation

◆ m_AnnotName

string CCSRAFileInfo::m_AnnotName
protected

Definition at line 463 of file csraloader_impl.hpp.

Referenced by GetBaseAnnotName(), and x_Initialize().

◆ m_CSRADb

CCSraDb CCSRAFileInfo::m_CSRADb
protected

Definition at line 467 of file csraloader_impl.hpp.

Referenced by CCSRAFileInfo(), GetDb(), IsValidReadId(), and x_Initialize().

◆ m_CSRAName

string CCSRAFileInfo::m_CSRAName
protected

Definition at line 461 of file csraloader_impl.hpp.

Referenced by AddRefSeq(), GetCSRAName(), and x_Initialize().

◆ m_MinMapQuality

int CCSRAFileInfo::m_MinMapQuality
protected

Definition at line 464 of file csraloader_impl.hpp.

Referenced by GetMinMapQuality(), and x_Initialize().

◆ m_PileupGraphs

bool CCSRAFileInfo::m_PileupGraphs
protected

Definition at line 465 of file csraloader_impl.hpp.

Referenced by GetPileupGraphs(), and x_Initialize().

◆ m_QualityGraphs

bool CCSRAFileInfo::m_QualityGraphs
protected

Definition at line 466 of file csraloader_impl.hpp.

Referenced by GetQualityGraphs(), LoadReadsBlob(), and x_Initialize().

◆ m_RefIdType

CCSraDb::ERefIdType CCSRAFileInfo::m_RefIdType
protected

Definition at line 462 of file csraloader_impl.hpp.

Referenced by GetRefIdType(), and x_Initialize().

◆ m_RefSeqs

TRefSeqs CCSRAFileInfo::m_RefSeqs
protected

Definition at line 469 of file csraloader_impl.hpp.

Referenced by AddRefSeq(), and GetRefSeqInfo().

◆ m_SeparateSpotGroups

vector<string> CCSRAFileInfo::m_SeparateSpotGroups
protected

Definition at line 468 of file csraloader_impl.hpp.

Referenced by GetAnnotName(), GetSeparateSpotGroups(), and x_Initialize().


The documentation for this class was generated from the following files:
Modified on Tue Dec 05 02:12:47 2023 by modify_doxy.py rev. 669887