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

Search Toolkit Book for CVDBValueFor2Bits

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

+ Collaboration diagram for CVDBValueFor2Bits:

Public Types

typedef unsigned TValue
 

Public Member Functions

 CVDBValueFor2Bits (void)
 
 CVDBValueFor2Bits (const CVDBValue::SRef &ref)
 
 CVDBValueFor2Bits (const CVDBCursor &cursor, TVDBRowId row, const CVDBColumn &column)
 
const char * raw_data (void) const
 
uint32_t raw_offset (void) const
 
uint32_t size (void) const
 
bool empty (void) const
 
TValue Value (size_t index) const
 
TValue operator[] (size_t index) const
 
CVDBValueFor2Bits substr (size_t pos, size_t len) const
 
CNcbiOstreamPrintFullName (CNcbiOstream &out) const
 

Protected Member Functions

void x_Get (const CVDBCursor &cursor, TVDBRowId row, const CVDBColumn &column)
 
TValue x_ValueByRawIndex (size_t raw_index) const
 
void x_ReportIndexOutOfBounds (size_t index) const
 
void x_CheckIndex (size_t index) const
 
void x_CheckRange (size_t pos, size_t len) const
 
 CVDBValueFor2Bits (const CVDBValue::SSaveRef &ref, const char *raw, uint32_t offset, uint32_t sz)
 

Static Protected Member Functions

static TValue sub_value (uint8_t v, size_t sub_index)
 

Protected Attributes

CVDBValue::SSaveRef m_Ref
 
const char * m_RawData
 
uint32_t m_ElemOffset
 
uint32_t m_ElemCount
 

Detailed Description

Definition at line 829 of file vdbread.hpp.

Member Typedef Documentation

◆ TValue

typedef unsigned CVDBValueFor2Bits::TValue

Definition at line 832 of file vdbread.hpp.

Constructor & Destructor Documentation

◆ CVDBValueFor2Bits() [1/4]

CVDBValueFor2Bits::CVDBValueFor2Bits ( void  )
inline

Definition at line 834 of file vdbread.hpp.

◆ CVDBValueFor2Bits() [2/4]

CVDBValueFor2Bits::CVDBValueFor2Bits ( const CVDBValue::SRef ref)
inlineexplicit

◆ CVDBValueFor2Bits() [3/4]

CVDBValueFor2Bits::CVDBValueFor2Bits ( const CVDBCursor cursor,
TVDBRowId  row,
const CVDBColumn column 
)
inline

Definition at line 847 of file vdbread.hpp.

References column, and x_Get().

◆ CVDBValueFor2Bits() [4/4]

CVDBValueFor2Bits::CVDBValueFor2Bits ( const CVDBValue::SSaveRef ref,
const char *  raw,
uint32_t  offset,
uint32_t  sz 
)
inlineprotected

Definition at line 912 of file vdbread.hpp.

Member Function Documentation

◆ empty()

bool CVDBValueFor2Bits::empty ( void  ) const
inline

Definition at line 868 of file vdbread.hpp.

References size().

◆ operator[]()

TValue CVDBValueFor2Bits::operator[] ( size_t  index) const
inline

Definition at line 878 of file vdbread.hpp.

References Value().

◆ PrintFullName()

CNcbiOstream& CVDBValueFor2Bits::PrintFullName ( CNcbiOstream out) const
inline

Definition at line 885 of file vdbread.hpp.

References m_Ref, out(), and CVDBValue::SSaveRef::PrintFullName().

Referenced by operator<<().

◆ raw_data()

const char* CVDBValueFor2Bits::raw_data ( void  ) const
inline

Definition at line 856 of file vdbread.hpp.

References m_RawData.

Referenced by x_ValueByRawIndex().

◆ raw_offset()

uint32_t CVDBValueFor2Bits::raw_offset ( void  ) const
inline

Definition at line 860 of file vdbread.hpp.

References m_ElemOffset.

Referenced by Value().

◆ size()

uint32_t CVDBValueFor2Bits::size ( void  ) const
inline

Definition at line 864 of file vdbread.hpp.

References m_ElemCount.

Referenced by empty(), and x_CheckIndex().

◆ sub_value()

static TValue CVDBValueFor2Bits::sub_value ( uint8_t  v,
size_t  sub_index 
)
inlinestaticprotected

Definition at line 894 of file vdbread.hpp.

Referenced by x_ValueByRawIndex().

◆ substr()

CVDBValueFor2Bits CVDBValueFor2Bits::substr ( size_t  pos,
size_t  len 
) const

Definition at line 1992 of file vdbread.cpp.

References len, CVDBValue::m_Ref, offset, and CVDBValue::x_CheckRange().

◆ Value()

TValue CVDBValueFor2Bits::Value ( size_t  index) const
inline

Definition at line 873 of file vdbread.hpp.

References raw_offset(), x_CheckIndex(), and x_ValueByRawIndex().

Referenced by operator[]().

◆ x_CheckIndex()

void CVDBValueFor2Bits::x_CheckIndex ( size_t  index) const
inlineprotected

Definition at line 904 of file vdbread.hpp.

References size(), and x_ReportIndexOutOfBounds().

Referenced by Value().

◆ x_CheckRange()

void CVDBValueFor2Bits::x_CheckRange ( size_t  pos,
size_t  len 
) const
inlineprotected

Definition at line 1969 of file vdbread.cpp.

References len, NCBI_THROW2_FMT, and CVDBValue::size().

◆ x_Get()

void CVDBValueFor2Bits::x_Get ( const CVDBCursor cursor,
TVDBRowId  row,
const CVDBColumn column 
)
protected

◆ x_ReportIndexOutOfBounds()

void CVDBValueFor2Bits::x_ReportIndexOutOfBounds ( size_t  index) const
protected

Definition at line 1957 of file vdbread.cpp.

References NCBI_THROW2_FMT, and CVDBValue::size().

Referenced by x_CheckIndex().

◆ x_ValueByRawIndex()

TValue CVDBValueFor2Bits::x_ValueByRawIndex ( size_t  raw_index) const
inlineprotected

Definition at line 898 of file vdbread.hpp.

References raw_data(), and sub_value().

Referenced by Value().

Member Data Documentation

◆ m_ElemCount

uint32_t CVDBValueFor2Bits::m_ElemCount
protected

Definition at line 924 of file vdbread.hpp.

Referenced by size().

◆ m_ElemOffset

uint32_t CVDBValueFor2Bits::m_ElemOffset
protected

Definition at line 923 of file vdbread.hpp.

Referenced by raw_offset().

◆ m_RawData

const char* CVDBValueFor2Bits::m_RawData
protected

Definition at line 922 of file vdbread.hpp.

Referenced by raw_data().

◆ m_Ref

CVDBValue::SSaveRef CVDBValueFor2Bits::m_Ref
protected

Definition at line 921 of file vdbread.hpp.

Referenced by PrintFullName().


The documentation for this class was generated from the following files:
Modified on Sun Mar 03 03:12:32 2024 by modify_doxy.py rev. 669887