ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CaloCellPrefetchIterator< T > Class Template Reference

#include <CaloCellPrefetchIterator.h>

Collaboration diagram for CaloCellPrefetchIterator< T >:

Public Types

typedef T base_iterator
 The base iterator, on which we're templated. More...
 
using iterator_category = std::forward_iterator_tag
 
using value_type = const CaloCell *
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 
typedef CaloEvent_detail::paramholder< T, typename T::iterator_category > paramholder
 The base paramholder class. More...
 

Public Member Functions

 CaloCellPrefetchIterator (const base_iterator &begin, const base_iterator &end)
 Constructor. More...
 
template<class CONTAINER >
 CaloCellPrefetchIterator (const CONTAINER &cont)
 Constructor, from a container. More...
 
bool next ()
 Move to the next element. More...
 
const CaloCelloperator* () const
 Dereference the iterator. More...
 
param_t getParameter () const
 Get this from the base class. More...
 

Private Member Functions

void init ()
 Initialize before first use. More...
 

Private Attributes

const CaloCellm_cellp
 Current cell pointer. More...
 
const CaloCellm_next_cellp
 Next cell pointer. More...
 
m_it
 Current iterator. Points at the next element. More...
 
m_end
 End iterator. More...
 

Detailed Description

template<class T>
class CaloCellPrefetchIterator< T >

Definition at line 25 of file CaloCellPrefetchIterator.h.

Member Typedef Documentation

◆ base_iterator

template<class T >
typedef T CaloCellPrefetchIterator< T >::base_iterator

The base iterator, on which we're templated.

Definition at line 163 of file CaloCellPrefetchIterator.h.

◆ difference_type

template<class T >
using CaloCellPrefetchIterator< T >::difference_type = std::ptrdiff_t

Definition at line 167 of file CaloCellPrefetchIterator.h.

◆ iterator_category

template<class T >
using CaloCellPrefetchIterator< T >::iterator_category = std::forward_iterator_tag

Definition at line 165 of file CaloCellPrefetchIterator.h.

◆ paramholder

template<class T >
typedef CaloEvent_detail::paramholder<T, typename T::iterator_category> CaloCellPrefetchIterator< T >::paramholder

The base paramholder class.

Definition at line 173 of file CaloCellPrefetchIterator.h.

◆ pointer

template<class T >
using CaloCellPrefetchIterator< T >::pointer = value_type*

Definition at line 168 of file CaloCellPrefetchIterator.h.

◆ reference

template<class T >
using CaloCellPrefetchIterator< T >::reference = value_type&

Definition at line 169 of file CaloCellPrefetchIterator.h.

◆ value_type

template<class T >
using CaloCellPrefetchIterator< T >::value_type = const CaloCell*

Definition at line 166 of file CaloCellPrefetchIterator.h.

Constructor & Destructor Documentation

◆ CaloCellPrefetchIterator() [1/2]

template<class T >
CaloCellPrefetchIterator< T >::CaloCellPrefetchIterator ( const base_iterator begin,
const base_iterator end 
)

Constructor.

Parameters
beginUnderlying begin iterator.
endUnderlying end iterator.

◆ CaloCellPrefetchIterator() [2/2]

template<class T >
template<class CONTAINER >
CaloCellPrefetchIterator< T >::CaloCellPrefetchIterator ( const CONTAINER &  cont)

Constructor, from a container.

Parameters
contContainer over which to iterate.

Member Function Documentation

◆ getParameter()

template<class T >
param_t CaloEvent_detail::paramholder< T, TAG >::getParameter

Get this from the base class.

◆ init()

template<class T >
void CaloCellPrefetchIterator< T >::init ( )
private

Initialize before first use.

◆ next()

template<class T >
bool CaloCellPrefetchIterator< T >::next ( )

Move to the next element.

Returns true if more elements, false otherwise. This should be called before processing the first element.

◆ operator*()

template<class T >
const CaloCell* CaloCellPrefetchIterator< T >::operator* ( ) const

Dereference the iterator.

Member Data Documentation

◆ m_cellp

template<class T >
const CaloCell* CaloCellPrefetchIterator< T >::m_cellp
private

Current cell pointer.

Definition at line 216 of file CaloCellPrefetchIterator.h.

◆ m_end

template<class T >
T CaloCellPrefetchIterator< T >::m_end
private

End iterator.

Definition at line 225 of file CaloCellPrefetchIterator.h.

◆ m_it

template<class T >
T CaloCellPrefetchIterator< T >::m_it
private

Current iterator. Points at the next element.

Definition at line 222 of file CaloCellPrefetchIterator.h.

◆ m_next_cellp

template<class T >
const CaloCell* CaloCellPrefetchIterator< T >::m_next_cellp
private

Next cell pointer.

Definition at line 219 of file CaloCellPrefetchIterator.h.


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