![]() |
ATLAS Offline Software
|
Simple iterator-like object for reading from the container. More...
#include <CaloCompactCellContainer.h>
Public Member Functions | |
compact_input_iterator (std::vector< value_type >::const_iterator it) | |
Constructor. More... | |
CaloCompactCell::value_type | next () |
Return the current value and advance to the next one. More... | |
std::vector< value_type >::const_iterator | base () const |
Return the underlying container iterator. More... | |
Private Attributes | |
std::vector< value_type >::const_iterator | m_it |
The iterator in the underlying container type. More... | |
value_type | m_word |
The current word. More... | |
int | m_count |
Count; used to tell how many more times we need to shift m_word . More... | |
Simple iterator-like object for reading from the container.
This allows reading one CaloCompactCell::value_type
object at a time from the container. There is only one method, next()
, which returns the next value (and advances the iterator).
Definition at line 155 of file CaloCompactCellContainer.h.
|
inline |
Constructor.
it | value_type iterator at the start of the data (after the header). |
Definition at line 287 of file CaloCompactCellContainer.h.
|
inline |
Return the underlying container iterator.
Definition at line 329 of file CaloCompactCellContainer.h.
|
inline |
Return the current value and advance to the next one.
Definition at line 298 of file CaloCompactCellContainer.h.
|
private |
Count; used to tell how many more times we need to shift m_word
.
Definition at line 187 of file CaloCompactCellContainer.h.
|
private |
The iterator in the underlying container type.
Definition at line 180 of file CaloCompactCellContainer.h.
|
private |
The current word.
This gets shifted to the right as we consume values from it.
Definition at line 184 of file CaloCompactCellContainer.h.