47 #ifdef MOOSE_KOKKOS_SCOPE 53 KOKKOS_FUNCTION
operator const T &()
const 86 template <
typename... Args>
87 KOKKOS_FUNCTION
auto operator()(Args &&... args)
const -> decltype(
auto)
89 KOKKOS_IF_ON_HOST(
return _reference(std::forward<Args>(args)...);)
91 return _copy(std::forward<Args>(args)...);
113 template <
typename... Args>
116 return _reference(std::forward<Args>(args)...);
138 template <
typename... Args>
141 return _reference(std::forward<Args>(args)...);
155 template <
typename T>
KOKKOS_FUNCTION const T * operator->() const
Get the const pointer to the stored variable.
The Kokkos object that can hold the reference of a variable.
auto operator()(Args &&... args) const -> decltype(auto)
Forward arguments to the stored host reference's const operator()
T & _reference
Writeable host reference of the variable.
T * operator->()
Get the writeable pointer of the stored host reference.
KOKKOS_FUNCTION auto operator()(Args &&... args) const -> decltype(auto)
Forward arguments to the stored variable's const operator() depending on the architecture this functi...
KOKKOS_FUNCTION const T & operator*() const
Get the const reference of the stored variable.
const T * operator->() const
Get the const pointer of the stored host reference.
ReferenceWrapper(const ReferenceWrapper< T > &object)
Copy constructor.
The type trait that determines the default behavior of copy constructor and deepCopy() If this type t...
const T _copy
Device copy of the variable.
const T & operator*() const
Get the const reference of the stored host reference.
auto operator()(Args &&... args) -> decltype(auto)
Forward arguments to the stored host reference's operator()
T & operator*()
Get the writeable reference of the stored host reference.
ReferenceWrapper(T &reference)
Constructor.
static constexpr bool value