|
ACTS
Experiment-independent tracking
|
Additional column of data that can be added to the space point container. More...
#include <Acts/EventData/SpacePointColumnProxy2.hpp>
Classes | |
| class | Subset |
Public Types | |
| using | Column = const_if_t<ReadOnly, std::vector<Value>> |
| Type alias for column container type (const if read-only). | |
| using | Container = const_if_t<ReadOnly, SpacePointContainer2> |
| Type alias for container type (const if read-only). | |
| using | Index = SpacePointIndex2 |
| Type alias for space point index type. | |
| using | IndexRange = SpacePointIndexRange2 |
| Type alias for space point index range type. | |
| using | IndexSubset = SpacePointIndexSubset2 |
| Type alias for space point index subset type. | |
| using | Value = T |
| Type alias for column value type. | |
Public Member Functions | |
| SpacePointColumnProxy (const SpacePointColumnProxy &other) noexcept=default | |
| Copy construct a space point column proxy. | |
| SpacePointColumnProxy (const SpacePointColumnProxy< T, false > &other) noexcept | |
| Copy construct a mutable space point column proxy. | |
| SpacePointColumnProxy (Container &container, Column &column) | |
| Constructs a space point column proxy for the given container and column. | |
| SpacePointColumnProxy< T, true > | asConst () const noexcept |
| Returns a const proxy of the space point column. | |
| Value & | at (Index index) |
| Returns a mutable reference to the column entry at the given index. | |
| const Value & | at (Index index) const |
| Returns a const reference to the column entry at the given index. | |
| const std::vector< Value > & | column () const noexcept |
| Returns a const reference to the column container. | |
| const SpacePointContainer2 & | container () const noexcept |
| Gets the container holding the space point. | |
| SpacePointContainer2 & | container () noexcept |
| Gets the container holding the space point. | |
| std::span< const Value > | data () const noexcept |
| Returns a const span to the column data. | |
| std::span< Value > | data () noexcept |
| Returns a mutable span to the column data. | |
| const Value & | operator[] (Index index) const noexcept |
| Returns a const reference to the column entry at the given index. | |
| Value & | operator[] (Index index) noexcept |
| Returns a mutable reference to the column entry at the given index. | |
| Subset | subset (const IndexSubset &subset) const noexcept |
| Creates a subset view of this space point column based on provided indices. | |
Static Public Attributes | |
| static constexpr bool | ReadOnly = read_only |
| Flag indicating whether this space point column proxy is read-only. | |
Additional column of data that can be added to the space point container.
The column is indexed by the space point index.
| using Acts::SpacePointColumnProxy< T, read_only >::Column = const_if_t<ReadOnly, std::vector<Value>> |
Type alias for column container type (const if read-only).
| using Acts::SpacePointColumnProxy< T, read_only >::Container = const_if_t<ReadOnly, SpacePointContainer2> |
Type alias for container type (const if read-only).
| using Acts::SpacePointColumnProxy< T, read_only >::Index = SpacePointIndex2 |
Type alias for space point index type.
| using Acts::SpacePointColumnProxy< T, read_only >::IndexRange = SpacePointIndexRange2 |
Type alias for space point index range type.
| using Acts::SpacePointColumnProxy< T, read_only >::IndexSubset = SpacePointIndexSubset2 |
Type alias for space point index subset type.
| using Acts::SpacePointColumnProxy< T, read_only >::Value = T |
Type alias for column value type.
| Acts::SpacePointColumnProxy< T, read_only >::SpacePointColumnProxy | ( | Container & | container, |
| Column & | column ) |
Constructs a space point column proxy for the given container and column.
| container | The container holding the space point. |
| column | The column of data to access. |
|
defaultnoexcept |
Copy construct a space point column proxy.
| other | The space point column proxy to copy. |
|
explicitnoexcept |
Copy construct a mutable space point column proxy.
| other | The mutable space point column proxy to copy. |
|
noexcept |
Returns a const proxy of the space point column.
| Value & Acts::SpacePointColumnProxy< T, read_only >::at | ( | Index | index | ) |
Returns a mutable reference to the column entry at the given index.
If the index is out of range, an exception is thrown.
| index | The index of the space point to access. |
| std::out_of_range | if the index is out of range. |
| const Value & Acts::SpacePointColumnProxy< T, read_only >::at | ( | Index | index | ) | const |
Returns a const reference to the column entry at the given index.
If the index is out of range, an exception is thrown.
| index | The index of the space point to access. |
| std::out_of_range | if the index is out of range. |
|
noexcept |
Returns a const reference to the column container.
|
noexcept |
Gets the container holding the space point.
|
noexcept |
Gets the container holding the space point.
|
noexcept |
Returns a const span to the column data.
|
noexcept |
Returns a mutable span to the column data.
|
noexcept |
Returns a const reference to the column entry at the given index.
| index | The index of the space point to access. |
|
noexcept |
Returns a mutable reference to the column entry at the given index.
| index | The index of the space point to access. |
|
noexcept |
Creates a subset view of this space point column based on provided indices.
This method creates a subset proxy that provides access to only the space points at the indices specified in the IndexSubset. The subset maintains a reference to the original column data without copying, enabling efficient access to selected space points for filtering, clustering, or other operations.
| subset | The index subset specifying which space points to include |
|
staticconstexpr |
Flag indicating whether this space point column proxy is read-only.