NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
bm::sparse_vector< Val, BV >::reference Class Reference

Search Toolkit Book for bm::sparse_vector::reference

Reference class to access elements via common [] operator. More...

#include <util/bitset/bmsparsevec.h>

Public Member Functions

 reference (sparse_vector< Val, BV > &sv, size_type idx) noexcept
 
 operator value_type () const noexcept
 
referenceoperator= (const reference &ref)
 
referenceoperator= (value_type val)
 
bool operator== (const reference &ref) const noexcept
 
bool is_null () const noexcept
 

Private Attributes

sparse_vector< Val, BV > & sv_
 
size_type idx_
 

Detailed Description

template<class Val, class BV>
class bm::sparse_vector< Val, BV >::reference

Reference class to access elements via common [] operator.

Definition at line 120 of file bmsparsevec.h.

Constructor & Destructor Documentation

◆ reference()

template<class Val , class BV >
bm::sparse_vector< Val, BV >::reference::reference ( sparse_vector< Val, BV > &  sv,
size_type  idx 
)
inlinenoexcept

Definition at line 123 of file bmsparsevec.h.

Member Function Documentation

◆ is_null()

template<class Val , class BV >
bool bm::sparse_vector< Val, BV >::reference::is_null ( ) const
inlinenoexcept

Definition at line 139 of file bmsparsevec.h.

◆ operator value_type()

template<class Val , class BV >
bm::sparse_vector< Val, BV >::reference::operator value_type ( ) const
inlinenoexcept

Definition at line 126 of file bmsparsevec.h.

◆ operator=() [1/2]

template<class Val , class BV >
reference& bm::sparse_vector< Val, BV >::reference::operator= ( const reference ref)
inline

Definition at line 127 of file bmsparsevec.h.

◆ operator=() [2/2]

template<class Val , class BV >
reference& bm::sparse_vector< Val, BV >::reference::operator= ( value_type  val)
inline

Definition at line 132 of file bmsparsevec.h.

◆ operator==()

template<class Val , class BV >
bool bm::sparse_vector< Val, BV >::reference::operator== ( const reference ref) const
inlinenoexcept

Definition at line 137 of file bmsparsevec.h.

Member Data Documentation

◆ idx_

template<class Val , class BV >
size_type bm::sparse_vector< Val, BV >::reference::idx_
private

◆ sv_

template<class Val , class BV >
sparse_vector<Val, BV>& bm::sparse_vector< Val, BV >::reference::sv_
private

The documentation for this class was generated from the following file:
Modified on Tue May 28 05:52:02 2024 by modify_doxy.py rev. 669887