ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::SourceLinkAdapterIterator< T > Struct Template Reference

Iterator adapter returning SourceLink wrappers. More...

#include <Acts/EventData/SourceLink.hpp>

Public Types

using BaseIterator = T
 The base iterator type.
using difference_type = typename BaseIterator::difference_type
 Difference type.
using iterator_category = typename BaseIterator::iterator_category
 Iterator category.
using pointer = typename BaseIterator::pointer
 Pointer type.
using reference = typename BaseIterator::reference
 Reference type.
using value_type = typename BaseIterator::value_type
 Value type.

Public Member Functions

 SourceLinkAdapterIterator (const T &iterator)
 Constructor from base iterator.
Acts::SourceLink operator* () const
 Dereference operator.
SourceLinkAdapterIteratoroperator++ ()
 Pre-increment operator.
auto operator- (const SourceLinkAdapterIterator &other) const
 Difference operator.
bool operator== (const SourceLinkAdapterIterator &other) const
 Equality comparison operator.

Public Attributes

BaseIterator m_iterator
 Underlying iterator.

Detailed Description

template<typename T>
struct Acts::SourceLinkAdapterIterator< T >

Iterator adapter returning SourceLink wrappers.

Constructor & Destructor Documentation

◆ SourceLinkAdapterIterator()

template<typename T>
Acts::SourceLinkAdapterIterator< T >::SourceLinkAdapterIterator ( const T & iterator)
explicit

Constructor from base iterator.

Parameters
iteratorBase iterator to wrap

Member Function Documentation

◆ operator*()

template<typename T>
Acts::SourceLink Acts::SourceLinkAdapterIterator< T >::operator* ( ) const

Dereference operator.

Returns
Wrapped source link

◆ operator++()

template<typename T>
SourceLinkAdapterIterator & Acts::SourceLinkAdapterIterator< T >::operator++ ( )

Pre-increment operator.

Returns
Reference to this iterator

◆ operator-()

template<typename T>
auto Acts::SourceLinkAdapterIterator< T >::operator- ( const SourceLinkAdapterIterator< T > & other) const

Difference operator.

Parameters
otherIterator to compute difference with
Returns
Distance between iterators

◆ operator==()

template<typename T>
bool Acts::SourceLinkAdapterIterator< T >::operator== ( const SourceLinkAdapterIterator< T > & other) const

Equality comparison operator.

Parameters
otherIterator to compare with
Returns
True if iterators are equal