Bitcoin ABC  0.24.7
P2P Digital Currency
Classes | Public Types | Public Member Functions | Private Attributes | List of all members
RWCollectionView< T, L > Class Template Reference

#include <rwcollection.h>

Classes

struct  BracketType
 

Public Types

using iterator = typename boost::range_iterator< T >::type
 Iterator mechanics. More...
 
using const_iterator = typename boost::range_iterator< const T >::type
 

Public Member Functions

 RWCollectionView (L l, T &c)
 
 RWCollectionView (RWCollectionView &&other)
 
 RWCollectionView (const RWCollectionView &)=delete
 
const RWCollectionViewoperator= (const RWCollectionView)=delete
 
T * operator-> ()
 
const T * operator-> () const
 
iterator begin ()
 
iterator end ()
 
std::reverse_iterator< iteratorrbegin ()
 
std::reverse_iterator< iteratorrend ()
 
const_iterator begin () const
 
const_iterator end () const
 
std::reverse_iterator< const_iteratorrbegin () const
 
std::reverse_iterator< const_iteratorrend () const
 
template<typename I >
BracketType< I >::type operator[] (I &&index)
 Forward bracket operator. More...
 

Private Attributes

lock
 
T * collection
 

Detailed Description

template<typename T, typename L>
class RWCollectionView< T, L >

Definition at line 17 of file rwcollection.h.

Member Typedef Documentation

◆ const_iterator

template<typename T , typename L >
using RWCollectionView< T, L >::const_iterator = typename boost::range_iterator<const T>::type

Definition at line 48 of file rwcollection.h.

◆ iterator

template<typename T , typename L >
using RWCollectionView< T, L >::iterator = typename boost::range_iterator<T>::type

Iterator mechanics.

Definition at line 40 of file rwcollection.h.

Constructor & Destructor Documentation

◆ RWCollectionView() [1/3]

template<typename T , typename L >
RWCollectionView< T, L >::RWCollectionView ( l,
T &  c 
)
inline

Definition at line 27 of file rwcollection.h.

◆ RWCollectionView() [2/3]

template<typename T , typename L >
RWCollectionView< T, L >::RWCollectionView ( RWCollectionView< T, L > &&  other)
inline

Definition at line 28 of file rwcollection.h.

◆ RWCollectionView() [3/3]

template<typename T , typename L >
RWCollectionView< T, L >::RWCollectionView ( const RWCollectionView< T, L > &  )
delete

Member Function Documentation

◆ begin() [1/2]

template<typename T , typename L >
iterator RWCollectionView< T, L >::begin ( )
inline

Definition at line 41 of file rwcollection.h.

◆ begin() [2/2]

template<typename T , typename L >
const_iterator RWCollectionView< T, L >::begin ( ) const
inline

Definition at line 49 of file rwcollection.h.

◆ end() [1/2]

template<typename T , typename L >
iterator RWCollectionView< T, L >::end ( )
inline

Definition at line 42 of file rwcollection.h.

◆ end() [2/2]

template<typename T , typename L >
const_iterator RWCollectionView< T, L >::end ( ) const
inline

Definition at line 50 of file rwcollection.h.

◆ operator->() [1/2]

template<typename T , typename L >
T* RWCollectionView< T, L >::operator-> ( )
inline

Definition at line 34 of file rwcollection.h.

◆ operator->() [2/2]

template<typename T , typename L >
const T* RWCollectionView< T, L >::operator-> ( ) const
inline

Definition at line 35 of file rwcollection.h.

◆ operator=()

template<typename T , typename L >
const RWCollectionView& RWCollectionView< T, L >::operator= ( const  RWCollectionView)
delete

◆ operator[]()

template<typename T , typename L >
template<typename I >
BracketType<I>::type RWCollectionView< T, L >::operator[] ( I &&  index)
inline

Forward bracket operator.

Definition at line 61 of file rwcollection.h.

◆ rbegin() [1/2]

template<typename T , typename L >
std::reverse_iterator<iterator> RWCollectionView< T, L >::rbegin ( )
inline

Definition at line 43 of file rwcollection.h.

◆ rbegin() [2/2]

template<typename T , typename L >
std::reverse_iterator<const_iterator> RWCollectionView< T, L >::rbegin ( ) const
inline

Definition at line 51 of file rwcollection.h.

◆ rend() [1/2]

template<typename T , typename L >
std::reverse_iterator<iterator> RWCollectionView< T, L >::rend ( )
inline

Definition at line 46 of file rwcollection.h.

◆ rend() [2/2]

template<typename T , typename L >
std::reverse_iterator<const_iterator> RWCollectionView< T, L >::rend ( ) const
inline

Definition at line 54 of file rwcollection.h.

Member Data Documentation

◆ collection

template<typename T , typename L >
T* RWCollectionView< T, L >::collection
private

Definition at line 20 of file rwcollection.h.

◆ lock

template<typename T , typename L >
L RWCollectionView< T, L >::lock
private

Definition at line 19 of file rwcollection.h.


The documentation for this class was generated from the following file: