ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::ranges::views::pointer< value_t > Struct Template Reference

interface type to construct a pointer_view with CTAD More...

#include <detray/utils/ranges/pointer.hpp>

Inheritance diagram for detray::ranges::views::pointer< value_t >:
[legend]
Collaboration diagram for detray::ranges::views::pointer< value_t >:
[legend]

Public Types

using base_type = detray::ranges::pointer_view<const value_t>
 Base implementation referencing one constant value.
Public Types inherited from detray::ranges::pointer_view< const value_t >
using iterator_t
 Pointer iterator over the referenced element.

Public Member Functions

template<typename deduced_value_t>
constexpr pointer (deduced_value_t &value)
 Construct a view referring to value.
Public Member Functions inherited from detray::ranges::pointer_view< const value_t >
 pointer_view ()=default
 Default constructor.
constexpr pointer_view (value_t &value)
 Construct iterator from the single.
constexpr auto back () noexcept -> value_t
constexpr auto begin () const noexcept -> const value_t *
constexpr auto begin () noexcept -> value_t *
constexpr auto data () const noexcept -> const value_t *
constexpr auto data () noexcept -> value_t *
constexpr auto end () const noexcept -> const value_t *
constexpr auto end () noexcept -> value_t *
constexpr auto front () noexcept -> value_t
constexpr auto operator* () -> value_t &
constexpr auto operator* () const -> const value_t &
constexpr auto operator[] (const dindex) const -> value_t
Public Member Functions inherited from detray::ranges::view_interface< pointer_view< value_t > >
constexpr decltype(auto) back () const
 Return a reference to the last element.
constexpr auto data () const
 Return a pointer to the first element, or null for an empty view.
constexpr auto empty () const -> bool
 Check whether the view contains no elements.
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.
constexpr decltype(auto) operator[] (const dindex i) const
 Subscript operator that takes detray dindex.
constexpr auto size () const
 Return the number of elements in the view.

Additional Inherited Members

Static Public Member Functions inherited from detray::ranges::pointer_view< const value_t >
static constexpr auto size () noexcept -> std::size_t

Detailed Description

template<typename value_t>
struct detray::ranges::views::pointer< value_t >

interface type to construct a pointer_view with CTAD

Constructor & Destructor Documentation

◆ pointer()

template<typename value_t>
template<typename deduced_value_t>
detray::ranges::views::pointer< value_t >::pointer ( deduced_value_t & value)
explicitconstexpr

Construct a view referring to value.

Parameters
valueelement whose lifetime must outlast the view