Skip to content

Class muda::FieldEntryViewCore

template <bool IsConst, typename T, FieldEntryLayout Layout, int M, int N>

ClassList > muda > FieldEntryViewCore

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef typename ViewerCore::ConstMatMap ConstMatMap
typedef CFieldEntryViewer< T, Layout, M, N > ConstViewer
typedef typename ViewerCore::MatStride MatStride
typedef typename ViewerCore::NonConstMatMap NonConstMatMap
typedef FieldEntryViewer< T, Layout, M, N > NonConstViewer
typedef typename ViewerCore::ThisMatMap ThisMatMap
typedef std::conditional_t< IsConst, ConstViewer, NonConstViewer > ThisViewer
typedef typename Base::template auto_const_t< U > auto_const_t

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 FieldEntryViewCore () = default
MUDA_GENERIC FieldEntryViewCore (HostDeviceConfigView< FieldEntryCore > core, int offset, int size)
MUDA_GENERIC auto cviewer () const
MUDA_GENERIC auto elem_byte_size () const
MUDA_GENERIC auto layout () const
MUDA_GENERIC auto layout_info () const
MUDA_GENERIC auto name () const
MUDA_GENERIC auto offset () const
MUDA_GENERIC auto shape () const
MUDA_GENERIC auto size () const
MUDA_GENERIC auto struct_stride () const
MUDA_GENERIC auto total_count () const
MUDA_GENERIC auto viewer ()

Protected Attributes

Type Name
HostDeviceConfigView< FieldEntryCore > m_core
int m_offset = = 0
int m_size = = 0
MatStride m_stride

Protected Functions

Type Name
MUDA_GENERIC FieldEntryViewCore (HostDeviceConfigView< FieldEntryCore > core, int offset, int size, AsIterator)
MUDA_GENERIC T * data (int i) const
MUDA_GENERIC T * data (int i, int j) const
MUDA_GENERIC T * data (int i, int row_index, int col_index) const

Public Types Documentation

typedef ConstMatMap

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::ConstMatMap =  typename ViewerCore::ConstMatMap;

typedef ConstViewer

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::ConstViewer =  CFieldEntryViewer<T, Layout, M, N>;

typedef MatStride

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::MatStride =  typename ViewerCore::MatStride;

typedef NonConstMatMap

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::NonConstMatMap =  typename ViewerCore::NonConstMatMap;

typedef NonConstViewer

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::NonConstViewer =  FieldEntryViewer<T, Layout, M, N>;

typedef ThisMatMap

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::ThisMatMap =  typename ViewerCore::ThisMatMap;

typedef ThisViewer

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::ThisViewer =  std::conditional_t<IsConst, ConstViewer, NonConstViewer>;

typedef auto_const_t

using muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::auto_const_t =  typename Base::template auto_const_t<U>;

Public Functions Documentation

function FieldEntryViewCore [2/3]

MUDA_GENERIC muda::FieldEntryViewCore::FieldEntryViewCore () = default

function FieldEntryViewCore [3/3]

inline MUDA_GENERIC muda::FieldEntryViewCore::FieldEntryViewCore (
    HostDeviceConfigView < FieldEntryCore > core,
    int offset,
    int size
) 

function cviewer

inline MUDA_GENERIC auto muda::FieldEntryViewCore::cviewer () const

function elem_byte_size

inline MUDA_GENERIC auto muda::FieldEntryViewCore::elem_byte_size () const

function layout

inline MUDA_GENERIC auto muda::FieldEntryViewCore::layout () const

function layout_info

inline MUDA_GENERIC auto muda::FieldEntryViewCore::layout_info () const

function name

inline MUDA_GENERIC auto muda::FieldEntryViewCore::name () const

function offset

inline MUDA_GENERIC auto muda::FieldEntryViewCore::offset () const

function shape

inline MUDA_GENERIC auto muda::FieldEntryViewCore::shape () const

function size

inline MUDA_GENERIC auto muda::FieldEntryViewCore::size () const

function struct_stride

inline MUDA_GENERIC auto muda::FieldEntryViewCore::struct_stride () const

function total_count

inline MUDA_GENERIC auto muda::FieldEntryViewCore::total_count () const

function viewer

inline MUDA_GENERIC auto muda::FieldEntryViewCore::viewer () 

Protected Attributes Documentation

variable m_core

HostDeviceConfigView<FieldEntryCore> muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::m_core;

variable m_offset

int muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::m_offset;

variable m_size

int muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::m_size;

variable m_stride

MatStride muda::FieldEntryViewCore< IsConst, T, Layout, M, N >::m_stride;

Protected Functions Documentation

function FieldEntryViewCore [1/3]

inline MUDA_GENERIC muda::FieldEntryViewCore::FieldEntryViewCore (
    HostDeviceConfigView < FieldEntryCore > core,
    int offset,
    int size,
    AsIterator
) 

function data [1/3]

inline MUDA_GENERIC T * muda::FieldEntryViewCore::data (
    int i
) const

function data [2/3]

inline MUDA_GENERIC T * muda::FieldEntryViewCore::data (
    int i,
    int j
) const

function data [3/3]

inline MUDA_GENERIC T * muda::FieldEntryViewCore::data (
    int i,
    int row_index,
    int col_index
) const


The documentation for this class was generated from the following file src/muda/ext/field/field_entry_view.h