ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::SeedProxy2< read_only >::SpacePointIterator Class Reference

Iterator over space points referenced by the seed. More...

#include <Acts/EventData/SeedProxy2.hpp>

Public Types

using difference_type = std::ptrdiff_t
 Iterator difference type.
using iterator_category = std::random_access_iterator_tag
 Iterator category.
using iterator_concept = std::random_access_iterator_tag
 Iterator concept.
using pointer = void
 Iterator pointer type.
using reference = void
 Iterator reference type.
using value_type = ConstSpacePointProxy2
 Iterator value type.

Public Member Functions

 SpacePointIterator (const SpacePointContainer2 &spacePointContainer, const SpacePointIndex2 *indexPointer) noexcept
 Constructor from space point container and index pointer.
value_type operator* () const noexcept
 Dereference operator.
constexpr SpacePointIterator & operator++ () noexcept
 Pre-increment operator.
constexpr SpacePointIterator operator++ (int) noexcept
 Post-increment operator.
constexpr SpacePointIterator & operator+= (difference_type n) noexcept
 Compound addition assignment operator.
constexpr SpacePointIterator & operator-- () noexcept
 Pre-decrement operator.
constexpr SpacePointIterator operator-- (int) noexcept
 Post-decrement operator.
constexpr SpacePointIterator & operator-= (difference_type n) noexcept
 Compound subtraction assignment operator.
value_type operator[] (difference_type n) const noexcept
 Subscript operator.

Detailed Description

template<bool read_only>
class Acts::SeedProxy2< read_only >::SpacePointIterator

Iterator over space points referenced by the seed.

Constructor & Destructor Documentation

◆ SpacePointIterator()

template<bool read_only>
Acts::SeedProxy2< read_only >::SpacePointIterator::SpacePointIterator ( const SpacePointContainer2 & spacePointContainer,
const SpacePointIndex2 * indexPointer )
noexcept

Constructor from space point container and index pointer.

Parameters
spacePointContainerContainer of space points
indexPointerPointer to space point index

Member Function Documentation

◆ operator*()

template<bool read_only>
value_type Acts::SeedProxy2< read_only >::SpacePointIterator::operator* ( ) const
noexcept

Dereference operator.

Returns
Proxy to the space point at the current position

◆ operator++() [1/2]

template<bool read_only>
SpacePointIterator & Acts::SeedProxy2< read_only >::SpacePointIterator::operator++ ( )
constexprnoexcept

Pre-increment operator.

Returns
Reference to the incremented iterator

◆ operator++() [2/2]

template<bool read_only>
SpacePointIterator Acts::SeedProxy2< read_only >::SpacePointIterator::operator++ ( int )
constexprnoexcept

Post-increment operator.

Returns
Copy of the iterator before increment

◆ operator+=()

template<bool read_only>
SpacePointIterator & Acts::SeedProxy2< read_only >::SpacePointIterator::operator+= ( difference_type n)
constexprnoexcept

Compound addition assignment operator.

Parameters
nNumber of positions to advance
Returns
Reference to the advanced iterator

◆ operator--() [1/2]

template<bool read_only>
SpacePointIterator & Acts::SeedProxy2< read_only >::SpacePointIterator::operator-- ( )
constexprnoexcept

Pre-decrement operator.

Returns
Reference to the decremented iterator

◆ operator--() [2/2]

template<bool read_only>
SpacePointIterator Acts::SeedProxy2< read_only >::SpacePointIterator::operator-- ( int )
constexprnoexcept

Post-decrement operator.

Returns
Copy of the iterator before decrement

◆ operator-=()

template<bool read_only>
SpacePointIterator & Acts::SeedProxy2< read_only >::SpacePointIterator::operator-= ( difference_type n)
constexprnoexcept

Compound subtraction assignment operator.

Parameters
nNumber of positions to move back
Returns
Reference to the moved iterator

◆ operator[]()

template<bool read_only>
value_type Acts::SeedProxy2< read_only >::SpacePointIterator::operator[] ( difference_type n) const
noexcept

Subscript operator.

Parameters
nOffset from the current position
Returns
Proxy to the space point at offset n