ATLAS Offline Software
Loading...
Searching...
No Matches
CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator Class Reference

Const iterator class. More...

#include <ConcurrentStrToValMap.h>

Inheritance diagram for CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator:
Collaboration diagram for CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator:

Public Member Functions

 const_iterator (typename Impl_t::const_iterator it)
 Constructor.
 const_iterator (const iterator &other)
 Conversion from non-const iterator (for interoperability).
bool valid () const
 Test if this iterator is valid.

Private Member Functions

void increment ()
 iterator_facade requirement: Increment the iterator.
void decrement ()
 iterator_facade requirement: Decrement the iterator.
bool equal (const const_iterator &other) const
 iterator_facade requirement: Equality test.
bool equal (const iterator &other) const
 iterator_facade requirement: Equality test.
const const_iterator_value dereference () const
 iterator_facade requirement: Dereference the iterator.

Private Attributes

Impl_t::const_iterator m_impl
 The iterator on the underlying table.

Friends

class boost::iterator_core_access
 Required by iterator_facade.
class iterator

Detailed Description

template<class VALUE, template< class > class UPDATER>
class CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator

Const iterator class.

This uses boost::iterator_facade to define the methods required by an STL iterator in terms of the private methods below.

Since dereference() will be returning a const_iterator_value by value, we also need to override the reference type.

Definition at line 215 of file ConcurrentStrToValMap.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<class VALUE, template< class > class UPDATER>
CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::const_iterator ( typename Impl_t::const_iterator it)

Constructor.

Parameters
itIterator of the underlying table.

◆ const_iterator() [2/2]

template<class VALUE, template< class > class UPDATER>
CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::const_iterator ( const iterator & other)

Conversion from non-const iterator (for interoperability).

Parameters
otherThe other iterator.

Member Function Documentation

◆ decrement()

template<class VALUE, template< class > class UPDATER>
void CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::decrement ( )
private

iterator_facade requirement: Decrement the iterator.

◆ dereference()

template<class VALUE, template< class > class UPDATER>
const const_iterator_value CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::dereference ( ) const
private

iterator_facade requirement: Dereference the iterator.

◆ equal() [1/2]

template<class VALUE, template< class > class UPDATER>
bool CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::equal ( const const_iterator & other) const
private

iterator_facade requirement: Equality test.

◆ equal() [2/2]

template<class VALUE, template< class > class UPDATER>
bool CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::equal ( const iterator & other) const
private

iterator_facade requirement: Equality test.

(Interoperability.)

◆ increment()

template<class VALUE, template< class > class UPDATER>
void CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::increment ( )
private

iterator_facade requirement: Increment the iterator.

◆ valid()

template<class VALUE, template< class > class UPDATER>
bool CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::valid ( ) const

Test if this iterator is valid.

This should be the same as testing for != end().

◆ boost::iterator_core_access

template<class VALUE, template< class > class UPDATER>
friend class boost::iterator_core_access
friend

Required by iterator_facade.

Definition at line 246 of file ConcurrentStrToValMap.h.

◆ iterator

template<class VALUE, template< class > class UPDATER>
friend class iterator
friend

Definition at line 247 of file ConcurrentStrToValMap.h.

Member Data Documentation

◆ m_impl

template<class VALUE, template< class > class UPDATER>
Impl_t::const_iterator CxxUtils::ConcurrentStrToValMap< VALUE, UPDATER >::const_iterator::m_impl
private

The iterator on the underlying table.

Definition at line 281 of file ConcurrentStrToValMap.h.


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