ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::BinnedGroupIterator< grid_t > Class Template Reference

Iterator over a binned group grid neighborhood. More...

#include <Acts/Seeding/BinnedGroupIterator.hpp>

Public Member Functions

 BinnedGroupIterator (BinnedGroup< grid_t > &&group, std::array< std::size_t, DIM > index, std::array< std::vector< std::size_t >, DIM > navigation)=delete
 Constructor Never take the ownership of the group.
 BinnedGroupIterator (const BinnedGroup< grid_t > &&group, std::array< std::size_t, DIM > index, std::array< std::vector< std::size_t >, DIM > navigation)=delete
 Constructor Never take the ownership of the group.
 BinnedGroupIterator (const BinnedGroup< grid_t > &group, std::array< std::size_t, DIM > index, std::array< std::vector< std::size_t >, DIM > navigation)
 Constructor.
std::tuple< boost::container::small_vector< std::size_t, ipow(3, grid_t::DIM)>, std::size_t, boost::container::small_vector< std::size_t, ipow(3, grid_t::DIM)> > operator* () const
 Return the current bin with the middle candidate, as well as all the bins with the possible bottom and top candidates.
BinnedGroupIterator< grid_t > & operator++ ()
 Increment the iterator by one (pre).
bool operator== (const BinnedGroupIterator< grid_t > &other) const
 Equality operator.

Static Public Attributes

static constexpr std::size_t DIM = grid_t::DIM
 Grid dimensionality.

Detailed Description

template<typename grid_t>
class Acts::BinnedGroupIterator< grid_t >

Iterator over a binned group grid neighborhood.

Template Parameters
grid_tGrid type used by the group.

Constructor & Destructor Documentation

◆ BinnedGroupIterator() [1/3]

template<typename grid_t>
Acts::BinnedGroupIterator< grid_t >::BinnedGroupIterator ( BinnedGroup< grid_t > && group,
std::array< std::size_t, DIM > index,
std::array< std::vector< std::size_t >, DIM > navigation )
delete

Constructor Never take the ownership of the group.

Parameters
[in]groupThe group we are iterating on
[in]indexCurrent local position in the grid
[in]navigationThe navigation pattern in the grid

◆ BinnedGroupIterator() [2/3]

template<typename grid_t>
Acts::BinnedGroupIterator< grid_t >::BinnedGroupIterator ( const BinnedGroup< grid_t > && group,
std::array< std::size_t, DIM > index,
std::array< std::vector< std::size_t >, DIM > navigation )
delete

Constructor Never take the ownership of the group.

Parameters
[in]groupThe group we are iterating on
[in]indexCurrent local position in the grid
[in]navigationThe navigation pattern in the grid

◆ BinnedGroupIterator() [3/3]

template<typename grid_t>
Acts::BinnedGroupIterator< grid_t >::BinnedGroupIterator ( const BinnedGroup< grid_t > & group,
std::array< std::size_t, DIM > index,
std::array< std::vector< std::size_t >, DIM > navigation )

Constructor.

Parameters
[in]groupThe group we are iterating on
[in]indexCurrent local position in the grid
[in]navigationThe navigation pattern in the grid

Member Function Documentation

◆ operator*()

template<typename grid_t>
std::tuple< boost::container::small_vector< std::size_t, ipow(3, grid_t::DIM)>, std::size_t, boost::container::small_vector< std::size_t, ipow(3, grid_t::DIM)> > Acts::BinnedGroupIterator< grid_t >::operator* ( ) const

Return the current bin with the middle candidate, as well as all the bins with the possible bottom and top candidates.

Returns
The collection of all the bins in the grid

◆ operator++()

template<typename grid_t>
BinnedGroupIterator< grid_t > & Acts::BinnedGroupIterator< grid_t >::operator++ ( )

Increment the iterator by one (pre).

Returns
The incremented iterator

◆ operator==()

template<typename grid_t>
bool Acts::BinnedGroupIterator< grid_t >::operator== ( const BinnedGroupIterator< grid_t > & other) const

Equality operator.

Parameters
[in]otherThe BinnedGroupIterator we are comparing against this one
Returns
The result of the comparison