Skip to content

Class muda::VarViewT

template <bool IsConst, typename T>

ClassList > muda > VarViewT

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef VarViewT< true, T > ConstView
typedef CDense< T > ConstViewer
typedef Dense< T > NonConstViewer
typedef VarViewT< IsConst, T > ThisView
typedef typename std::conditional_t< IsConst, ConstViewer, NonConstViewer > ThisViewer
typedef size_t difference_type
typedef std::random_access_iterator_tag iterator_category
typedef T * pointer
typedef T & reference
typedef T value_type

Public Types inherited from muda::ViewBase

See muda::ViewBase

Type Name
typedef std::conditional_t< IsConst, const T, T > auto_const_t
typedef std::enable_if_t< IsNonConst, T > non_const_enable_t

Public Static Attributes inherited from muda::ViewBase

See muda::ViewBase

Type Name
constexpr bool IsConst = = IsConst_
constexpr bool IsNonConst = = !IsConst_

Public Functions

Type Name
MUDA_GENERIC VarViewT ()
MUDA_GENERIC VarViewT (auto_const_t< T > * data)
MUDA_GENERIC VarViewT (const VarViewT & other)
MUDA_GENERIC VarViewT (const VarViewT< OtherIsConst, T > & other)
MUDA_GENERIC ConstView as_const () const
MUDA_HOST void copy_from (const T * data) const
MUDA_HOST void copy_from (const ConstView & val) const
MUDA_HOST void copy_to (T * data) const
MUDA_GENERIC ConstViewer cviewer () const
MUDA_GENERIC auto_const_t< T > * data () const
MUDA_HOST void fill (const T & value) const
MUDA_GENERIC reference operator* ()
MUDA_GENERIC auto_const_t< T > & operator[] (int i) const
MUDA_GENERIC ThisViewer viewer () const

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