MUDA
Loading...
Searching...
No Matches
muda::FieldEntry< T, Layout, M, N > Class Template Reference
Inheritance diagram for muda::FieldEntry< T, Layout, M, N >:
muda::FieldEntryBase

Public Types

using ElementType = typename FieldEntryView< T, Layout, M, N >::ElementType
 

Public Member Functions

 FieldEntry (SubField &field, FieldEntryLayoutInfo layout, FieldEntryType type, std::string_view name)
 
 FieldEntry (SubField &field, FieldEntryLayoutInfo layout, FieldEntryType type, uint2 shape, std::string_view name)
 
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 ()
 
CFieldEntryViewer< T, Layout, M, N > cviewer () const
 
void copy_to (DeviceBuffer< ElementType > &dst) const
 
void copy_to (std::vector< ElementType > &dst) const
 
void copy_from (const DeviceBuffer< ElementType > &src)
 
void copy_from (const std::vector< ElementType > &src)
 
template<FieldEntryLayout SrcLayout>
void copy_from (const FieldEntry< T, SrcLayout, M, N > &src)
 
virtual void async_copy_to_new_place (HostDeviceConfigView< FieldEntryCore > new_place) const override
 
void fill (const ElementType &value)
 
- Public Member Functions inherited from muda::FieldEntryBase
 FieldEntryBase (SubField &field, FieldEntryLayoutInfo layout_info, FieldEntryType type, uint2 shape, uint32_t m_elem_byte_size, std::string_view name)
 
MUDA_GENERIC auto layout_info () const
 
MUDA_GENERIC auto layout () const
 
MUDA_GENERIC auto count () const
 
MUDA_GENERIC auto elem_byte_size () const
 
MUDA_GENERIC auto shape () const
 
MUDA_GENERIC auto struct_stride () const
 
MUDA_GENERIC auto name () const
 

Additional Inherited Members

- Protected Member Functions inherited from muda::FieldEntryBase
 FieldEntryBase (const FieldEntryBase &)=delete
 
FieldEntryBaseoperator= (const FieldEntryBase &)=delete
 
MUDA_GENERIC const auto & core () const
 
- Protected Attributes inherited from muda::FieldEntryBase
SubFieldm_field
 
std::string m_name
 
FieldEntryCore m_core
 
HostDeviceConfig< FieldEntryCorem_host_device_core
 

Member Function Documentation

◆ async_copy_to_new_place()

template<typename T , FieldEntryLayout Layout, int M, int N>
virtual void muda::FieldEntry< T, Layout, M, N >::async_copy_to_new_place ( HostDeviceConfigView< FieldEntryCore new_place) const
inlineoverridevirtual

Implements muda::FieldEntryBase.


The documentation for this class was generated from the following files: