OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Attributes | Friends | List of all members
PartBunchBase< T, Dim >::ConstIterator Class Reference

#include <PartBunchBase.h>

Collaboration diagram for PartBunchBase< T, Dim >::ConstIterator:
Collaboration graph
[legend]

Public Member Functions

 ConstIterator ()
 
 ConstIterator (PartBunchBase const *bunch, unsigned int i)
 
 ~ConstIterator ()
 
bool operator== (ConstIterator const &rhs) const
 
bool operator!= (ConstIterator const &rhs) const
 
OpalParticle operator* () const
 
ConstIterator operator++ ()
 
ConstIterator operator++ (int)
 
int operator- (const ConstIterator &other) const
 

Private Attributes

PartBunchBase const * bunch_m
 
unsigned int index_m
 

Friends

class PartBunchBase< T, Dim >
 

Detailed Description

template<class T, unsigned Dim>
class PartBunchBase< T, Dim >::ConstIterator

Definition at line 217 of file PartBunchBase.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/2]

template<class T , unsigned Dim>
PartBunchBase< T, Dim >::ConstIterator::ConstIterator ( )
inline

Definition at line 221 of file PartBunchBase.h.

◆ ConstIterator() [2/2]

template<class T , unsigned Dim>
PartBunchBase< T, Dim >::ConstIterator::ConstIterator ( PartBunchBase const *  bunch,
unsigned int  i 
)
inline

Definition at line 225 of file PartBunchBase.h.

◆ ~ConstIterator()

template<class T , unsigned Dim>
PartBunchBase< T, Dim >::ConstIterator::~ConstIterator ( )
inline

Definition at line 230 of file PartBunchBase.h.

Member Function Documentation

◆ operator!=()

template<class T , unsigned Dim>
bool PartBunchBase< T, Dim >::ConstIterator::operator!= ( ConstIterator const &  rhs) const
inline

◆ operator*()

template<class T , unsigned Dim>
OpalParticle PartBunchBase< T, Dim >::ConstIterator::operator* ( ) const
inline

◆ operator++() [1/2]

template<class T , unsigned Dim>
ConstIterator PartBunchBase< T, Dim >::ConstIterator::operator++ ( )
inline

Definition at line 256 of file PartBunchBase.h.

References PartBunchBase< T, Dim >::ConstIterator::index_m.

◆ operator++() [2/2]

template<class T , unsigned Dim>
ConstIterator PartBunchBase< T, Dim >::ConstIterator::operator++ ( int  )
inline

Definition at line 262 of file PartBunchBase.h.

References PartBunchBase< T, Dim >::ConstIterator::index_m.

◆ operator-()

template<class T , unsigned Dim>
int PartBunchBase< T, Dim >::ConstIterator::operator- ( const ConstIterator other) const
inline

Definition at line 270 of file PartBunchBase.h.

References PartBunchBase< T, Dim >::ConstIterator::index_m.

◆ operator==()

template<class T , unsigned Dim>
bool PartBunchBase< T, Dim >::ConstIterator::operator== ( ConstIterator const &  rhs) const
inline

Friends And Related Function Documentation

◆ PartBunchBase< T, Dim >

template<class T , unsigned Dim>
friend class PartBunchBase< T, Dim >
friend

Definition at line 727 of file PartBunchBase.h.

Member Data Documentation

◆ bunch_m

template<class T , unsigned Dim>
PartBunchBase const* PartBunchBase< T, Dim >::ConstIterator::bunch_m
private

◆ index_m

template<class T , unsigned Dim>
unsigned int PartBunchBase< T, Dim >::ConstIterator::index_m
private

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