ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimBinArray< T >::Iterator Struct Reference

#include <FPGATrackSimBinArray.h>

Inheritance diagram for FPGATrackSimBinArray< T >::Iterator:
Collaboration diagram for FPGATrackSimBinArray< T >::Iterator:

Public Types

using value_type = FPGATrackSimBinArray<T>::Iterator
using iterator_category = std::forward_iterator_tag
using container_type = FPGATrackSimBinArray<T>
using difference_type = void
using pointer = FPGATrackSimBinArray<T>::Iterator*
using reference = FPGATrackSimBinArray<T>::Iterator &

Public Member Functions

 Iterator (const std::vector< unsigned int > &idx, FPGATrackSimBinArray< T > &itrdata)
Iteratoroperator* ()
Iteratoroperator-> ()
Iteratoroperator++ ()
T & data ()
Iterator operator++ (int)
const std::vector< unsigned int > & idx () const

Private Attributes

std::vector< unsigned int > m_idx
const FPGATrackSimBinArray< T > & m_itrdata

Friends

bool operator== (const Iterator &a, const Iterator &b)
bool operator!= (const Iterator &a, const Iterator &b)

Detailed Description

template<typename T>
struct FPGATrackSimBinArray< T >::Iterator

Definition at line 200 of file FPGATrackSimBinArray.h.

Member Typedef Documentation

◆ container_type

template<typename T>
using FPGATrackSimBinArray< T >::Iterator::container_type = FPGATrackSimBinArray<T>

Definition at line 204 of file FPGATrackSimBinArray.h.

◆ difference_type

template<typename T>
using FPGATrackSimBinArray< T >::Iterator::difference_type = void

Definition at line 205 of file FPGATrackSimBinArray.h.

◆ iterator_category

template<typename T>
using FPGATrackSimBinArray< T >::Iterator::iterator_category = std::forward_iterator_tag

Definition at line 203 of file FPGATrackSimBinArray.h.

◆ pointer

template<typename T>
using FPGATrackSimBinArray< T >::Iterator::pointer = FPGATrackSimBinArray<T>::Iterator*

Definition at line 206 of file FPGATrackSimBinArray.h.

◆ reference

template<typename T>
using FPGATrackSimBinArray< T >::Iterator::reference = FPGATrackSimBinArray<T>::Iterator &

Definition at line 207 of file FPGATrackSimBinArray.h.

◆ value_type

template<typename T>
using FPGATrackSimBinArray< T >::Iterator::value_type = FPGATrackSimBinArray<T>::Iterator

Definition at line 202 of file FPGATrackSimBinArray.h.

Constructor & Destructor Documentation

◆ Iterator()

template<typename T>
FPGATrackSimBinArray< T >::Iterator::Iterator ( const std::vector< unsigned int > & idx,
FPGATrackSimBinArray< T > & itrdata )
inline

Definition at line 210 of file FPGATrackSimBinArray.h.

ConstIterator(const std::vector< unsigned int > &idx, const FPGATrackSimBinArray< T > &itrdata)
const std::vector< unsigned int > & idx() const

Member Function Documentation

◆ data()

template<typename T>
T & FPGATrackSimBinArray< T >::Iterator::data ( )
inline

Definition at line 225 of file FPGATrackSimBinArray.h.

225 {
226 T &retv ATLAS_THREAD_SAFE = const_cast<T &>(((ConstIterator*)this)->data());
227 return retv;
228 }

◆ idx()

template<typename T>
const std::vector< unsigned int > & FPGATrackSimBinArray< T >::ConstIterator::idx ( ) const
inlineinherited

Definition at line 174 of file FPGATrackSimBinArray.h.

174{ return m_idx; }

◆ operator*()

template<typename T>
Iterator & FPGATrackSimBinArray< T >::Iterator::operator* ( )
inline

Definition at line 214 of file FPGATrackSimBinArray.h.

214{ return *this; }

◆ operator++() [1/2]

template<typename T>
Iterator & FPGATrackSimBinArray< T >::Iterator::operator++ ( )
inline

Definition at line 218 of file FPGATrackSimBinArray.h.

219 {
220 ++(*(ConstIterator*)this);
221 return *this;
222 }

◆ operator++() [2/2]

template<typename T>
Iterator FPGATrackSimBinArray< T >::Iterator::operator++ ( int )
inline

Definition at line 231 of file FPGATrackSimBinArray.h.

232 {
233 Iterator tmp = *this;
234 ++(*this);
235 return tmp;
236 }
Iterator(const std::vector< unsigned int > &idx, FPGATrackSimBinArray< T > &itrdata)

◆ operator->()

template<typename T>
Iterator * FPGATrackSimBinArray< T >::Iterator::operator-> ( )
inline

Definition at line 215 of file FPGATrackSimBinArray.h.

215{ return this; }

◆ operator!=

template<typename T>
bool operator!= ( const Iterator & a,
const Iterator & b )
friend

Definition at line 239 of file FPGATrackSimBinArray.h.

239{ return (ConstIterator&)a != (ConstIterator&)b; }

◆ operator==

template<typename T>
bool operator== ( const Iterator & a,
const Iterator & b )
friend

Definition at line 238 of file FPGATrackSimBinArray.h.

238{ return (ConstIterator&)a == (ConstIterator&)b; }

Member Data Documentation

◆ m_idx

template<typename T>
std::vector<unsigned int> FPGATrackSimBinArray< T >::ConstIterator::m_idx
privateinherited

Definition at line 193 of file FPGATrackSimBinArray.h.

◆ m_itrdata

template<typename T>
const FPGATrackSimBinArray<T>& FPGATrackSimBinArray< T >::ConstIterator::m_itrdata
privateinherited

Definition at line 196 of file FPGATrackSimBinArray.h.


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