ATLAS Offline Software
Loading...
Searching...
No Matches
CaloCellPrefetchIterator< T > Class Template Reference

#include <CaloCellPrefetchIterator.h>

Inheritance diagram for CaloCellPrefetchIterator< T >:
Collaboration diagram for CaloCellPrefetchIterator< T >:

Public Types

typedef T base_iterator
 The base iterator, on which we're templated.
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.
typedef int param_t
 Type for the parameter (a dummy here).

Public Member Functions

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

Private Member Functions

void init ()
 Initialize before first use.
void fetch (const T &it)
 Fetch the next weight from the iterator (a no-op).

Private Attributes

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

Detailed Description

template<class T>
class CaloCellPrefetchIterator< T >

Definition at line 158 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.

◆ param_t

typedef int CaloEvent_detail::paramholder< T, T::iterator_category >::param_t
inherited

Type for the parameter (a dummy here).

Definition at line 55 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

◆ fetch()

void CaloEvent_detail::paramholder< T, T::iterator_category >::fetch ( const T & it)
privateinherited

Fetch the next weight from the iterator (a no-op).

◆ getParameter()

template<class T>
param_t CaloEvent_detail::paramholder< T, typename T::iterator_category >::getParameter ( ) const

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: