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

Search Toolkit Book for CVDBGraphSeqIterator

#include <sra/readers/sra/graphread.hpp>

+ Collaboration diagram for CVDBGraphSeqIterator:

Public Types

enum  EContentFlags {
  fGraphMain = 1<<0 , fGraphQ0 = 1<<1 , fGraphQ10 = 1<<2 , fGraphQ50 = 1<<3 ,
  fGraphQ90 = 1<<4 , fGraphQ100 = 1<<5 , fGraphQAll , fGraphMainAsTable = 1<<8 ,
  fGraphMainAsGraph = 1<<9 , fGraphMainAsBest = (fGraphMainAsTable | fGraphMainAsGraph) , fGraphZoomQ0 = 1<<11 , fGraphZoomQ10 = 1<<12 ,
  fGraphZoomQ50 = 1<<13 , fGraphZoomQ90 = 1<<14 , fGraphZoomQ100 = 1<<15 , fGraphZoomQAll ,
  fDefaultContent = fGraphQAll
}
 
typedef CVDBGraphDb_Impl::SSeqInfo SSeqInfo
 
typedef CVDBGraphDb_Impl::SGraphTableCursor SGraphTableCursor
 
typedef CVDBGraphDb_Impl::TSeqInfoList::const_iterator TSeqInfoIter
 
typedef int TContentFlags
 

Public Member Functions

 CVDBGraphSeqIterator (void)
 
 CVDBGraphSeqIterator (const CVDBGraphDb &db)
 
 CVDBGraphSeqIterator (const CVDBGraphDb &db, const CSeq_id_Handle &seq_id)
 
bool operator! (void) const
 
 operator const void * (void) const
 
const SSeqInfoGetInfo (void) const
 
const SSeqInfooperator* (void) const
 
const SSeqInfooperator-> (void) const
 
CVDBGraphSeqIteratoroperator++ (void)
 
const stringGetSeqId (void) const
 
const CSeq_id_HandleGetSeq_id_Handle (void) const
 
TSeqPos GetSeqLength (void) const
 
CRef< CSeq_annotGetAnnot (COpenRange< TSeqPos > range, const string &annot_name=kEmptyStr, TContentFlags content=fDefaultContent) const
 
bool SeqTableIsSmaller (COpenRange< TSeqPos > range) const
 

Protected Member Functions

CVDBGraphDb_ImplGetDb (void) const
 
CRef< CSeq_graphx_MakeGraph (const string &annot_name, CSeq_loc &loc, const SSeqInfo &info, const COpenRange< TSeqPos > &range, TSeqPos step, SGraphTableCursor &cursor, CVDBColumn &column, int level) const
 
CRef< CSeq_tablex_MakeTable (const string &annot_name, CSeq_loc &loc, const SSeqInfo &info, const COpenRange< TSeqPos > &range, SGraphTableCursor &cursor) const
 
bool x_SeqTableIsSmaller (COpenRange< TSeqPos > range, SGraphTableCursor &cursor) const
 

Private Attributes

CVDBGraphDb m_Db
 
CVDBGraphDb_Impl::SSeqInfo m_Info
 

Detailed Description

Definition at line 189 of file graphread.hpp.

Member Typedef Documentation

◆ SGraphTableCursor

Definition at line 193 of file graphread.hpp.

◆ SSeqInfo

Definition at line 192 of file graphread.hpp.

◆ TContentFlags

Definition at line 263 of file graphread.hpp.

◆ TSeqInfoIter

typedef CVDBGraphDb_Impl::TSeqInfoList::const_iterator CVDBGraphSeqIterator::TSeqInfoIter

Definition at line 194 of file graphread.hpp.

Member Enumeration Documentation

◆ EContentFlags

Enumerator
fGraphMain 
fGraphQ0 
fGraphQ10 
fGraphQ50 
fGraphQ90 
fGraphQ100 
fGraphQAll 
fGraphMainAsTable 
fGraphMainAsGraph 
fGraphMainAsBest 
fGraphZoomQ0 
fGraphZoomQ10 
fGraphZoomQ50 
fGraphZoomQ90 
fGraphZoomQ100 
fGraphZoomQAll 
fDefaultContent 

Definition at line 232 of file graphread.hpp.

Constructor & Destructor Documentation

◆ CVDBGraphSeqIterator() [1/3]

CVDBGraphSeqIterator::CVDBGraphSeqIterator ( void  )
inline

Definition at line 196 of file graphread.hpp.

◆ CVDBGraphSeqIterator() [2/3]

CVDBGraphSeqIterator::CVDBGraphSeqIterator ( const CVDBGraphDb db)
explicit

◆ CVDBGraphSeqIterator() [3/3]

CVDBGraphSeqIterator::CVDBGraphSeqIterator ( const CVDBGraphDb db,
const CSeq_id_Handle seq_id 
)

Member Function Documentation

◆ GetAnnot()

CRef< CSeq_annot > CVDBGraphSeqIterator::GetAnnot ( COpenRange< TSeqPos range,
const string annot_name = kEmptyStr,
TContentFlags  content = fDefaultContent 
) const

◆ GetDb()

CVDBGraphDb_Impl& CVDBGraphSeqIterator::GetDb ( void  ) const
inlineprotected

Definition at line 274 of file graphread.hpp.

References CRef< C, Locker >::GetNCObject(), and m_Db.

Referenced by GetAnnot(), and SeqTableIsSmaller().

◆ GetInfo()

const CVDBGraphDb_Impl::SSeqInfo & CVDBGraphSeqIterator::GetInfo ( void  ) const

◆ GetSeq_id_Handle()

const CSeq_id_Handle& CVDBGraphSeqIterator::GetSeq_id_Handle ( void  ) const
inline

◆ GetSeqId()

const string& CVDBGraphSeqIterator::GetSeqId ( void  ) const
inline

Definition at line 220 of file graphread.hpp.

References GetInfo(), and CVDBGraphDb_Impl::SSeqInfo::m_SeqId.

◆ GetSeqLength()

TSeqPos CVDBGraphSeqIterator::GetSeqLength ( void  ) const
inline

◆ operator const void *()

CVDBGraphSeqIterator::operator const void * ( void  ) const
inline

Definition at line 206 of file graphread.hpp.

◆ operator!()

bool CVDBGraphSeqIterator::operator! ( void  ) const
inline

Definition at line 203 of file graphread.hpp.

References m_Info, and CVDBGraphDb_Impl::SSeqInfo::m_RowSize.

◆ operator*()

const SSeqInfo& CVDBGraphSeqIterator::operator* ( void  ) const
inline

Definition at line 211 of file graphread.hpp.

References GetInfo().

◆ operator++()

CVDBGraphSeqIterator & CVDBGraphSeqIterator::operator++ ( void  )

Definition at line 345 of file graphread.cpp.

References GetInfo(), m_Db, and m_Info.

◆ operator->()

const SSeqInfo* CVDBGraphSeqIterator::operator-> ( void  ) const
inline

Definition at line 214 of file graphread.hpp.

References GetInfo().

◆ SeqTableIsSmaller()

bool CVDBGraphSeqIterator::SeqTableIsSmaller ( COpenRange< TSeqPos range) const

◆ x_MakeGraph()

CRef< CSeq_graph > CVDBGraphSeqIterator::x_MakeGraph ( const string annot_name,
CSeq_loc loc,
const SSeqInfo info,
const COpenRange< TSeqPos > &  range,
TSeqPos  step,
SGraphTableCursor cursor,
CVDBColumn column,
int  level 
) const
protected

◆ x_MakeTable()

CRef< CSeq_table > CVDBGraphSeqIterator::x_MakeTable ( const string annot_name,
CSeq_loc loc,
const SSeqInfo info,
const COpenRange< TSeqPos > &  range,
SGraphTableCursor cursor 
) const
protected

◆ x_SeqTableIsSmaller()

bool CVDBGraphSeqIterator::x_SeqTableIsSmaller ( COpenRange< TSeqPos range,
SGraphTableCursor cursor 
) const
protected

Definition at line 609 of file graphread.cpp.

References GetInfo(), info, int, kMax_I4, kMax_UI1, kMin_I4, and compile_time_bits::range().

Referenced by GetAnnot(), and SeqTableIsSmaller().

Member Data Documentation

◆ m_Db

CVDBGraphDb CVDBGraphSeqIterator::m_Db
private

Definition at line 296 of file graphread.hpp.

Referenced by GetDb(), and operator++().

◆ m_Info

CVDBGraphDb_Impl::SSeqInfo CVDBGraphSeqIterator::m_Info
private

Definition at line 297 of file graphread.hpp.

Referenced by CVDBGraphSeqIterator(), GetInfo(), operator!(), and operator++().


The documentation for this class was generated from the following files:
Modified on Thu Feb 29 12:18:34 2024 by modify_doxy.py rev. 669887