NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
CBinaryRangeCacheWithLock< Position, Value >::CLock Class Reference

Search Toolkit Book for CBinaryRangeCacheWithLock::CLock

#include <sra/readers/bam/cache_with_lock.hpp>

+ Collaboration diagram for CBinaryRangeCacheWithLock< Position, Value >::CLock:

Public Member Functions

 CLock ()
 
 ~CLock ()
 
 CLock (const CLock &lock)
 
CLockoperator= (const CLock &lock)
 
 CLock (CLock &&lock)
 
CLockoperator= (CLock &&lock)
 
 DECLARE_OPERATOR_BOOL_REF (m_Slot)
 
void Reset ()
 
CFastMutexGetValueMutex ()
 
const range_typeget_range () const
 
mapped_typeoperator* () const
 
mapped_typeoperator-> () const
 
bool operator== (CLock a) const
 
bool operator!= (CLock a) const
 

Protected Member Functions

 CLock (CBinaryRangeCacheWithLock *cache, const TMapIterator &iter)
 

Protected Attributes

CRef< CBinaryRangeCacheWithLockm_Cache
 
range_type m_Range
 
CRef< CSlotm_Slot
 

Friends

class CBinaryRangeCacheWithLock
 

Detailed Description

template<class Position, class Value>
class CBinaryRangeCacheWithLock< Position, Value >::CLock

Definition at line 263 of file cache_with_lock.hpp.

Constructor & Destructor Documentation

◆ CLock() [1/4]

template<class Position , class Value >
CBinaryRangeCacheWithLock< Position, Value >::CLock::CLock ( CBinaryRangeCacheWithLock cache,
const TMapIterator iter 
)
inlineprotected

◆ CLock() [2/4]

template<class Position , class Value >
CBinaryRangeCacheWithLock< Position, Value >::CLock::CLock ( )
inline

Definition at line 280 of file cache_with_lock.hpp.

◆ ~CLock()

template<class Position , class Value >
CBinaryRangeCacheWithLock< Position, Value >::CLock::~CLock ( )
inline

◆ CLock() [3/4]

template<class Position , class Value >
CBinaryRangeCacheWithLock< Position, Value >::CLock::CLock ( const CLock lock)
inline

◆ CLock() [4/4]

template<class Position , class Value >
CBinaryRangeCacheWithLock< Position, Value >::CLock::CLock ( CLock &&  lock)
inline

Definition at line 307 of file cache_with_lock.hpp.

Member Function Documentation

◆ DECLARE_OPERATOR_BOOL_REF()

template<class Position , class Value >
CBinaryRangeCacheWithLock< Position, Value >::CLock::DECLARE_OPERATOR_BOOL_REF ( m_Slot  )

◆ get_range()

template<class Position , class Value >
const range_type& CBinaryRangeCacheWithLock< Position, Value >::CLock::get_range ( ) const
inline

◆ GetValueMutex()

template<class Position , class Value >
CFastMutex& CBinaryRangeCacheWithLock< Position, Value >::CLock::GetValueMutex ( )
inline

◆ operator!=()

template<class Position , class Value >
bool CBinaryRangeCacheWithLock< Position, Value >::CLock::operator!= ( CLock  a) const
inline

Definition at line 341 of file cache_with_lock.hpp.

References a.

◆ operator*()

template<class Position , class Value >
mapped_type& CBinaryRangeCacheWithLock< Position, Value >::CLock::operator* ( void  ) const
inline

◆ operator->()

template<class Position , class Value >
mapped_type* CBinaryRangeCacheWithLock< Position, Value >::CLock::operator-> ( void  ) const
inline

◆ operator=() [1/2]

template<class Position , class Value >
CLock& CBinaryRangeCacheWithLock< Position, Value >::CLock::operator= ( CLock &&  lock)
inline

◆ operator=() [2/2]

template<class Position , class Value >
CLock& CBinaryRangeCacheWithLock< Position, Value >::CLock::operator= ( const CLock lock)
inline

◆ operator==()

template<class Position , class Value >
bool CBinaryRangeCacheWithLock< Position, Value >::CLock::operator== ( CLock  a) const
inline

◆ Reset()

template<class Position , class Value >
void CBinaryRangeCacheWithLock< Position, Value >::CLock::Reset ( void  )
inline

Friends And Related Function Documentation

◆ CBinaryRangeCacheWithLock

template<class Position , class Value >
friend class CBinaryRangeCacheWithLock
friend

Definition at line 268 of file cache_with_lock.hpp.

Member Data Documentation

◆ m_Cache

template<class Position , class Value >
CRef<CBinaryRangeCacheWithLock> CBinaryRangeCacheWithLock< Position, Value >::CLock::m_Cache
protected

◆ m_Range

template<class Position , class Value >
range_type CBinaryRangeCacheWithLock< Position, Value >::CLock::m_Range
protected

◆ m_Slot

template<class Position , class Value >
CRef<CSlot> CBinaryRangeCacheWithLock< Position, Value >::CLock::m_Slot
protected

The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:05 2024 by modify_doxy.py rev. 669887