Project
Loading...
Searching...
No Matches
o2::emcal::ClusterFactory< InputType >::ClusterIterator Class Reference

#include <ClusterFactory.h>

Public Member Functions

 ClusterIterator (const ClusterFactory &factory, int clusterIndex, bool forward)
 Constructor, initializing the iterator.
 
 ~ClusterIterator ()=default
 Destructor.
 
bool operator== (const ClusterIterator &rhs) const
 Check for equalness.
 
bool operator!= (const ClusterIterator &rhs) const
 Check for not equalness.
 
ClusterIteratoroperator++ ()
 Prefix incrementation operator.
 
ClusterIterator operator++ (int)
 Postfix incrementation operator.
 
ClusterIteratoroperator-- ()
 Prefix decrementation operator.
 
ClusterIterator operator-- (int)
 Postfix decrementation operator.
 
AnalysisClusteroperator* ()
 Get pointer to the current cluster.
 
AnalysisClusteroperator& ()
 Get reference to the current cluster.
 
int current_index () const
 Get the index of the current event.
 

Detailed Description

template<class InputType>
class o2::emcal::ClusterFactory< InputType >::ClusterIterator

Definition at line 132 of file ClusterFactory.h.

Constructor & Destructor Documentation

◆ ClusterIterator()

template<class InputType >
ClusterFactory::ClusterIterator::ClusterIterator ( const ClusterFactory factory,
int  clusterIndex,
bool  forward 
)

Constructor, initializing the iterator.

Parameters
factorycluster factory to iterate over
clusterIndexcluster ID from which to start the iteration
forwardDirection of the iteration (true = forward)

Definition at line 835 of file ClusterFactory.cxx.

◆ ~ClusterIterator()

template<class InputType >
o2::emcal::ClusterFactory< InputType >::ClusterIterator::~ClusterIterator ( )
default

Destructor.

Member Function Documentation

◆ current_index()

template<class InputType >
int o2::emcal::ClusterFactory< InputType >::ClusterIterator::current_index ( ) const
inline

Get the index of the current event.

Returns
Index of the current event

Definition at line 184 of file ClusterFactory.h.

◆ operator!=()

template<class InputType >
bool o2::emcal::ClusterFactory< InputType >::ClusterIterator::operator!= ( const ClusterIterator rhs) const
inline

Check for not equalness.

Parameters
rhsIterator to compare to
Returns
True if iterators are different, false otherwise

Check is done on same event factory, event ID and direction

Definition at line 156 of file ClusterFactory.h.

◆ operator&()

template<class InputType >
AnalysisCluster & o2::emcal::ClusterFactory< InputType >::ClusterIterator::operator& ( )
inline

Get reference to the current cluster.

Returns
Reference to the current event of the iterator

Definition at line 180 of file ClusterFactory.h.

◆ operator*()

template<class InputType >
AnalysisCluster * o2::emcal::ClusterFactory< InputType >::ClusterIterator::operator* ( )
inline

Get pointer to the current cluster.

Returns
Pointer to the current event

Definition at line 176 of file ClusterFactory.h.

◆ operator++() [1/2]

template<class InputType >
ClusterFactory< InputType >::ClusterIterator & ClusterFactory::ClusterIterator::operator++ ( )

Prefix incrementation operator.

Returns
Iterator after incrementation

Definition at line 850 of file ClusterFactory.cxx.

◆ operator++() [2/2]

template<class InputType >
ClusterFactory< InputType >::ClusterIterator ClusterFactory::ClusterIterator::operator++ ( int  )

Postfix incrementation operator.

Returns
Iterator before incrementation

Definition at line 862 of file ClusterFactory.cxx.

◆ operator--() [1/2]

template<class InputType >
ClusterFactory< InputType >::ClusterIterator & ClusterFactory::ClusterIterator::operator-- ( )

Prefix decrementation operator.

Returns
Iterator after decrementation

Definition at line 870 of file ClusterFactory.cxx.

◆ operator--() [2/2]

template<class InputType >
ClusterFactory< InputType >::ClusterIterator ClusterFactory::ClusterIterator::operator-- ( int  )

Postfix decrementation operator.

Returns
Iterator before decrementation

Definition at line 882 of file ClusterFactory.cxx.

◆ operator==()

template<class InputType >
bool ClusterFactory::ClusterIterator::operator== ( const ClusterIterator rhs) const

Check for equalness.

Parameters
rhsIterator to compare to
Returns
True if iterators are the same, false otherwise

Check is done on same event factory, event ID and direction

Definition at line 844 of file ClusterFactory.cxx.


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