|
|
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.
|
|
| | 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.
|
| std::uint32_t | size () const noexcept |
| | Returns the number of entries in the space point column.
|
| Subset | subset (const IndexSubset &subset) const noexcept |
| | Creates a subset view of this space point column based on provided indices.
|
template<typename T, bool read_only>
class Acts::SpacePointColumnProxy< T, read_only >
Additional column of data that can be added to the space point container.
The column is indexed by the space point index.
template<typename T, bool read_only>
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.
- Parameters
-
| subset | The index subset specifying which space points to include |
- Returns
- A subset proxy providing access to the selected space points
- Note
- The returned subset shares data with the original column
-
The subset remains valid only as long as the original column exists
-
This operation does not copy data, providing efficient subset access