Class muda::FieldEntry
template <typename T, FieldEntryLayout Layout, int M, int N>
ClassList > muda > FieldEntry
Inherits the following classes: muda::FieldEntryBase
Public Types
| Type | Name |
|---|---|
| typedef typename FieldEntryView< T, Layout, M, N >::ElementType | ElementType |
Public Functions
| Type | Name |
|---|---|
| FieldEntry (SubField & field, FieldEntryLayoutInfo layout, FieldEntryType type, std::string_view name) |
|
| FieldEntry (SubField & field, FieldEntryLayoutInfo layout, FieldEntryType type, uint2 shape, std::string_view name) |
|
| virtual void | async_copy_to_new_place (HostDeviceConfigView< FieldEntryCore > new_place) override const |
| void | copy_from (const DeviceBuffer< ElementType > & src) |
| void | copy_from (const std::vector< ElementType > & src) |
| void | copy_from (const FieldEntry< T, SrcLayout, M, N > & src) |
| void | copy_to (DeviceBuffer< ElementType > & dst) const |
| void | copy_to (std::vector< ElementType > & dst) const |
| CFieldEntryViewer< T, Layout, M, N > | cviewer () const |
| void | fill (const ElementType & value) |
| FieldEntryView< T, Layout, M, N > | view () |
| CFieldEntryView< T, Layout, M, N > | view () const |
| auto | view (int offset) |
| auto | view (int offset) const |
| auto | view (int offset, int count) |
| auto | view (int offset, int count) const |
| FieldEntryViewer< T, Layout, M, N > | viewer () |
Public Functions inherited from muda::FieldEntryBase
| Type | Name |
|---|---|
| FieldEntryBase (SubField & field, FieldEntryLayoutInfo layout_info, FieldEntryType type, uint2 shape, uint32_t m_elem_byte_size, std::string_view name) |
|
| MUDA_GENERIC auto | count () 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 | shape () const |
| MUDA_GENERIC auto | struct_stride () const |
| ~FieldEntryBase () = default |
Protected Attributes inherited from muda::FieldEntryBase
| Type | Name |
|---|---|
| FieldEntryCore | m_core |
| SubField & | m_field |
| HostDeviceConfig< FieldEntryCore > | m_host_device_core |
| std::string | m_name |
Protected Functions inherited from muda::FieldEntryBase
| Type | Name |
|---|---|
| FieldEntryBase (const FieldEntryBase &) = delete |
|
| virtual void | async_copy_to_new_place (HostDeviceConfigView< FieldEntryCore > vfc) const = 0 |
| MUDA_GENERIC const auto & | core () const |
| FieldEntryBase & | operator= (const FieldEntryBase &) = delete |
Public Types Documentation
typedef ElementType
using muda::FieldEntry< T, Layout, M, N >::ElementType = typename FieldEntryView<T, Layout, M, N>::ElementType;
Public Functions Documentation
function FieldEntry [1/2]
inline muda::FieldEntry::FieldEntry (
SubField & field,
FieldEntryLayoutInfo layout,
FieldEntryType type,
std::string_view name
)
function FieldEntry [2/2]
inline muda::FieldEntry::FieldEntry (
SubField & field,
FieldEntryLayoutInfo layout,
FieldEntryType type,
uint2 shape,
std::string_view name
)
function async_copy_to_new_place
inline virtual void muda::FieldEntry::async_copy_to_new_place (
HostDeviceConfigView < FieldEntryCore > new_place
) override const
Implements muda::FieldEntryBase::async_copy_to_new_place
function copy_from [1/3]
function copy_from [2/3]
function copy_from [3/3]
template<FieldEntryLayout SrcLayout>
void muda::FieldEntry::copy_from (
const FieldEntry < T, SrcLayout, M, N > & src
)
function copy_to [1/2]
function copy_to [2/2]
function cviewer
function fill
function view [1/6]
function view [2/6]
function view [3/6]
function view [4/6]
function view [5/6]
function view [6/6]
function viewer
The documentation for this class was generated from the following file src/muda/ext/field/field.h