|
ACTS
Experiment-independent tracking
|
Defines a detray 'view'. More...
#include <detray/utils/ranges/ranges.hpp>
Public Member Functions | |
| template<detray::ranges::bidirectional_range R = view_impl_t> | |
| constexpr decltype(auto) | back () |
| Return a writable reference to the last element. | |
| template<detray::ranges::bidirectional_range R = view_impl_t> | |
| constexpr decltype(auto) | back () const |
| Return a reference to the last element. | |
| constexpr auto | data () |
| Return a writable pointer to the first element, or null if empty. | |
| constexpr auto | data () const |
| Return a pointer to the first element, or null for an empty view. | |
| template<detray::ranges::forward_range R = view_impl_t> | |
| constexpr auto | empty () const -> bool |
| Check whether the view contains no elements. | |
| template<detray::ranges::forward_range R = view_impl_t> | |
| constexpr decltype(auto) | front () |
| Return a writable reference to the first element. | |
| template<detray::ranges::forward_range R = view_impl_t> | |
| constexpr decltype(auto) | front () const |
| Return a reference to the first element. | |
| constexpr | operator bool () const |
| Test whether the view contains at least one element. | |
| template<detray::ranges::random_access_range R = view_impl_t> | |
| constexpr decltype(auto) | operator[] (const dindex i) |
Subscript operator that takes detray dindex. | |
| template<detray::ranges::random_access_range R = view_impl_t> | |
| constexpr decltype(auto) | operator[] (const dindex i) const |
Subscript operator that takes detray dindex. | |
| template<detray::ranges::forward_range R = view_impl_t> | |
| constexpr auto | size () const |
| Return the number of elements in the view. | |
Defines a detray 'view'.
For now, the views have to restrict the member functions themselves (i.e. forward, bidirectional, random access)
|
constexpr |
Return a writable reference to the last element.
|
constexpr |
Return a reference to the last element.
|
constexpr |
Return a writable pointer to the first element, or null if empty.
|
constexpr |
Return a pointer to the first element, or null for an empty view.
|
constexpr |
Check whether the view contains no elements.
|
constexpr |
Return a writable reference to the first element.
|
constexpr |
Return a reference to the first element.
|
explicitconstexpr |
Test whether the view contains at least one element.
|
constexpr |
Subscript operator that takes detray dindex.
| i | zero-based element index |
|
constexpr |
Subscript operator that takes detray dindex.
| i | zero-based element index |
|
constexpr |
Return the number of elements in the view.