LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "CountersMap.h"
Public Types | |
using | value_type = typename CounterMap_t::value_type |
value type: pair More... | |
using | difference_type = std::ptrdiff_t |
using | pointer = const value_type * |
using | reference = const value_type & |
using | iterator_category = std::bidirectional_iterator_tag |
using | iterator_type = CounterMap_t::const_iterator |
this type More... | |
Public Member Functions | |
const_iterator ()=default | |
Default constructor. More... | |
value_type | operator* () const |
Access to the pointed pair. More... | |
iterator_type & | operator++ () |
iterator_type | operator++ (int) |
iterator_type & | operator-- () |
iterator_type | operator-- (int) |
bool | operator== (const iterator_type &as) const |
bool | operator!= (const iterator_type &as) const |
CounterKey_t | key () const |
Returns the key of the pointed item as a CounterKey_t. More... | |
Protected Member Functions | |
const_iterator (typename BaseMap_t::const_iterator it, size_t ix) | |
Private constructor (from a map iterator and a block index) More... | |
Protected Attributes | |
BaseMap_t::const_iterator | iter |
iterator to the block of counters More... | |
CounterIndex_t | index |
index of the counted in the subblock More... | |
Private Attributes | |
friend | CountersMap< K, C, S, A, SUB > |
Definition at line 430 of file CountersMap.h.
using lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::difference_type = std::ptrdiff_t |
Definition at line 435 of file CountersMap.h.
using lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::iterator_category = std::bidirectional_iterator_tag |
Definition at line 438 of file CountersMap.h.
using lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::iterator_type = CounterMap_t::const_iterator |
this type
Definition at line 440 of file CountersMap.h.
using lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::pointer = const value_type* |
Definition at line 436 of file CountersMap.h.
using lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::reference = const value_type& |
Definition at line 437 of file CountersMap.h.
using lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::value_type = typename CounterMap_t::value_type |
value type: pair
Definition at line 434 of file CountersMap.h.
|
default |
Default constructor.
|
inlineprotected |
Private constructor (from a map iterator and a block index)
Definition at line 498 of file CountersMap.h.
|
inline |
Returns the key of the pointed item as a CounterKey_t.
Definition at line 490 of file CountersMap.h.
|
inline |
Definition at line 484 of file CountersMap.h.
References lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::index, and lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::iter.
|
inline |
Access to the pointed pair.
Definition at line 446 of file CountersMap.h.
|
inline |
Definition at line 448 of file CountersMap.h.
|
inline |
Definition at line 456 of file CountersMap.h.
|
inline |
Definition at line 463 of file CountersMap.h.
|
inline |
Definition at line 473 of file CountersMap.h.
|
inline |
Definition at line 480 of file CountersMap.h.
References lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::index, and lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::iter.
|
private |
Definition at line 431 of file CountersMap.h.
|
protected |
index of the counted in the subblock
Definition at line 495 of file CountersMap.h.
Referenced by lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::operator!=(), and lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::operator==().
|
protected |
iterator to the block of counters
Definition at line 493 of file CountersMap.h.
Referenced by lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::operator!=(), and lar::CountersMap< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::const_iterator::operator==().