12 #ifdef MOOSE_KOKKOS_SCOPE 51 #ifdef MOOSE_KOKKOS_SCOPE 57 KOKKOS_FUNCTION
operator const T &()
const 90 template <
typename... Args>
91 KOKKOS_FUNCTION
auto operator()(Args &&... args)
const -> decltype(
auto)
93 KOKKOS_IF_ON_HOST(
return _reference(std::forward<Args>(args)...);)
95 return _copy(std::forward<Args>(args)...);
117 template <
typename... Args>
120 return _reference(std::forward<Args>(args)...);
142 template <
typename... Args>
145 return _reference(std::forward<Args>(args)...);
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.
const T _copy
Device copy of the variable.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
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.