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

Range facade for the seed space points. More...

#include <Acts/EventData/SeedProxy2.hpp>

Public Types

using size_type = std::size_t
 Size type for the range.
using value_type = ConstSpacePointProxy2
 Value type for the range.

Public Member Functions

 SpacePointRange (const SpacePointContainer2 &spacePointContainer, std::span< const SpacePointIndex2 > spacePointIndices) noexcept
 Constructor.
SpacePointIterator begin () const noexcept
 Get iterator to the beginning.
bool empty () const noexcept
 Check if the range is empty.
SpacePointIterator end () const noexcept
 Get iterator to the end.
ConstSpacePointProxy2 operator[] (std::size_t index) const noexcept
 Subscript operator.
std::size_t size () const noexcept
 Get the number of space points in the range.

Detailed Description

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

Range facade for the seed space points.

Constructor & Destructor Documentation

◆ SpacePointRange()

template<bool read_only>
Acts::SeedProxy2< read_only >::SpacePointRange::SpacePointRange ( const SpacePointContainer2 & spacePointContainer,
std::span< const SpacePointIndex2 > spacePointIndices )
noexcept

Constructor.

Parameters
spacePointContainerThe space point container
spacePointIndicesThe space point indices

Member Function Documentation

◆ begin()

template<bool read_only>
SpacePointIterator Acts::SeedProxy2< read_only >::SpacePointRange::begin ( ) const
noexcept

Get iterator to the beginning.

Returns
Iterator to the first space point

◆ empty()

template<bool read_only>
bool Acts::SeedProxy2< read_only >::SpacePointRange::empty ( ) const
noexcept

Check if the range is empty.

Returns
True if the range is empty

◆ end()

template<bool read_only>
SpacePointIterator Acts::SeedProxy2< read_only >::SpacePointRange::end ( ) const
noexcept

Get iterator to the end.

Returns
Iterator past the last space point

◆ operator[]()

template<bool read_only>
ConstSpacePointProxy2 Acts::SeedProxy2< read_only >::SpacePointRange::operator[] ( std::size_t index) const
noexcept

Subscript operator.

Parameters
indexIndex of the space point
Returns
Proxy to the space point at the given index

◆ size()

template<bool read_only>
std::size_t Acts::SeedProxy2< read_only >::SpacePointRange::size ( ) const
noexcept

Get the number of space points in the range.

Returns
Number of space points