MUDA
Loading...
Searching...
No Matches
muda::Dense2DBase< IsConst, T > Class Template Reference
Inheritance diagram for muda::Dense2DBase< IsConst, T >:
muda::ViewerBase< IsConst >

Public Types

using value_type = T
 
using ConstViewer = Dense2DBase< true, T >
 
using NonConstViewer = Dense2DBase< false, T >
 
using ThisViewer = Dense2DBase< IsConst, T >
 

Public Member Functions

MUDA_GENERIC Dense2DBase (auto_const_t< T > *p, const int2 &offset, const int2 &dim, int pitch_bytes) MUDA_NOEXCEPT
 
MUDA_GENERIC auto as_const () const MUDA_NOEXCEPT
 
MUDA_GENERIC operator ConstViewer () const MUDA_NOEXCEPT
 
MUDA_GENERIC auto_const_t< T > & operator() (int x, int y) MUDA_NOEXCEPT
 
MUDA_GENERIC auto_const_t< T > & operator() (const int2 &xy) MUDA_NOEXCEPT
 
MUDA_GENERIC auto_const_t< T > & flatten (int i)
 
MUDA_GENERIC auto_const_t< T > * data () MUDA_NOEXCEPT
 
MUDA_GENERIC const T & operator() (const int2 &xy) const MUDA_NOEXCEPT
 
MUDA_GENERIC const T & operator() (int x, int y) const MUDA_NOEXCEPT
 
MUDA_GENERIC const T & flatten (int i) const
 
MUDA_GENERIC const T * data () const MUDA_NOEXCEPT
 
MUDA_GENERIC auto total_size () const MUDA_NOEXCEPT
 
MUDA_GENERIC auto area () const MUDA_NOEXCEPT
 
MUDA_GENERIC auto dim () const MUDA_NOEXCEPT
 
MUDA_GENERIC auto pitch_bytes () const MUDA_NOEXCEPT
 
- Public Member Functions inherited from muda::ViewerBase< IsConst >
 ViewerBase (const ViewerBase &)=default
 
 ViewerBase (ViewerBase &&)=default
 
MUDA_GENERIC const char * name () const MUDA_NOEXCEPT
 
MUDA_GENERIC const char * kernel_name () const MUDA_NOEXCEPT
 
MUDA_GENERIC const char * kernel_file () const MUDA_NOEXCEPT
 
MUDA_GENERIC int kernel_line () const MUDA_NOEXCEPT
 
MUDA_INLINE MUDA_GENERIC void copy_label (const ViewerBase &other) MUDA_NOEXCEPT
 
ViewerBaseoperator= (const ViewerBase &)=default
 
ViewerBaseoperator= (ViewerBase &&)=default
 

Protected Types

template<typename U >
using auto_const_t = typename Base::template auto_const_t< U >
 
- Protected Types inherited from muda::ViewerBase< IsConst >
using auto_const_t = std::conditional_t< IsConst, const T, T >
 
using non_const_enable_t = std::enable_if_t< IsNonConst, T >
 

Protected Member Functions

MUDA_INLINE MUDA_GENERIC void check_range (int x, int y) const MUDA_NOEXCEPT
 
MUDA_INLINE MUDA_GENERIC void check () const MUDA_NOEXCEPT
 
- Protected Member Functions inherited from muda::ViewerBase< IsConst >
MUDA_INLINE MUDA_HOST void name (const char *n) MUDA_NOEXCEPT
 
MUDA_INLINE MUDA_GENERIC void name (details::StringPointer pointer) MUDA_NOEXCEPT
 

Protected Attributes

auto_const_t< T > * m_data
 
int2 m_offset
 
int2 m_dim
 
int m_pitch_bytes
 

Additional Inherited Members

- Static Public Attributes inherited from muda::ViewerBase< IsConst >
static constexpr bool IsConst
 
static constexpr bool IsNonConst
 

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