Class muda::VarViewT
template <bool IsConst, typename T>
ClassList > muda > VarViewT
Inherits the following classes: muda::ViewBase
Public Types
Public Types inherited from muda::ViewBase
See muda::ViewBase
Public Static Attributes inherited from muda::ViewBase
See muda::ViewBase
Type |
Name |
constexpr bool |
IsConst = = IsConst_
|
constexpr bool |
IsNonConst = = !IsConst_
|
Public Functions
Protected Types
Type |
Name |
typedef typename Base::template auto_const_t< U > |
auto_const_t
|
Protected Attributes
Type |
Name |
auto_const_t< T > * |
m_data = = nullptr
|
Public Types Documentation
typedef ConstView
using muda::VarViewT< IsConst, T >::ConstView = VarViewT<true, T>;
typedef ConstViewer
using muda::VarViewT< IsConst, T >::ConstViewer = CDense<T>;
typedef NonConstViewer
using muda::VarViewT< IsConst, T >::NonConstViewer = Dense<T>;
typedef ThisView
using muda::VarViewT< IsConst, T >::ThisView = VarViewT<IsConst, T>;
typedef ThisViewer
using muda::VarViewT< IsConst, T >::ThisViewer = typename std::conditional_t<IsConst, ConstViewer, NonConstViewer>;
typedef difference_type
using muda::VarViewT< IsConst, T >::difference_type = size_t;
typedef iterator_category
using muda::VarViewT< IsConst, T >::iterator_category = std::random_access_iterator_tag;
typedef pointer
using muda::VarViewT< IsConst, T >::pointer = T*;
typedef reference
using muda::VarViewT< IsConst, T >::reference = T&;
typedef value_type
using muda::VarViewT< IsConst, T >::value_type = T;
Public Functions Documentation
function VarViewT [2/5]
MUDA_GENERIC muda::VarViewT::VarViewT ()
function VarViewT [3/5]
MUDA_GENERIC muda::VarViewT::VarViewT (
auto_const_t< T > * data
)
function VarViewT [4/5]
MUDA_GENERIC muda::VarViewT::VarViewT (
const VarViewT & other
)
function VarViewT [5/5]
template<bool OtherIsConst>
MUDA_GENERIC muda::VarViewT::VarViewT (
const VarViewT < OtherIsConst, T > & other
)
function as_const
MUDA_GENERIC ConstView muda::VarViewT::as_const () const
function copy_from [1/2]
MUDA_HOST void muda::VarViewT::copy_from (
const T * data
) const
function copy_from [2/2]
MUDA_HOST void muda::VarViewT::copy_from (
const ConstView & val
) const
function copy_to
MUDA_HOST void muda::VarViewT::copy_to (
T * data
) const
function cviewer
MUDA_GENERIC ConstViewer muda::VarViewT::cviewer () const
function data
MUDA_GENERIC auto_const_t< T > * muda::VarViewT::data () const
function fill
MUDA_HOST void muda::VarViewT::fill (
const T & value
) const
function operator*
inline MUDA_GENERIC reference muda::VarViewT::operator* ()
function operator[]
inline MUDA_GENERIC auto_const_t< T > & muda::VarViewT::operator[] (
int i
) const
function viewer
MUDA_GENERIC ThisViewer muda::VarViewT::viewer () const
Protected Types Documentation
typedef auto_const_t
using muda::VarViewT< IsConst, T >::auto_const_t = typename Base::template auto_const_t<U>;
Protected Attributes Documentation
variable m_data
auto_const_t<T>* muda::VarViewT< IsConst, T >::m_data;
The documentation for this class was generated from the following file src/muda/buffer/var_view.h