Class muda::Dense2DBase
template <bool IsConst, typename T>
ClassList > muda > Dense2DBase
Inherits the following classes: muda::ViewerBase
Public Types
Public Static Attributes inherited from muda::ViewerBase
See muda::ViewerBase
Type |
Name |
constexpr bool |
IsConst = = IsConst_
|
constexpr bool |
IsNonConst = = !IsConst_
|
Public Functions
Type |
Name |
MUDA_GENERIC |
Dense2DBase ()
|
MUDA_GENERIC |
Dense2DBase (auto_const_t< T > * p, const int2 & offset, const int2 & dim, int pitch_bytes)
|
MUDA_GENERIC auto |
area () const
|
MUDA_GENERIC auto |
as_const () const
|
MUDA_GENERIC auto_const_t< T > * |
data ()
|
MUDA_GENERIC const T * |
data () const
|
MUDA_GENERIC auto |
dim () const
|
MUDA_GENERIC auto_const_t< T > & |
flatten (int i)
|
MUDA_GENERIC const T & |
flatten (int i) const
|
MUDA_GENERIC |
operator ConstViewer () const
|
MUDA_GENERIC auto_const_t< T > & |
operator() (int x, int y)
|
MUDA_GENERIC auto_const_t< T > & |
operator() (const int2 & xy)
|
MUDA_GENERIC const T & |
operator() (const int2 & xy) const
|
MUDA_GENERIC const T & |
operator() (int x, int y) const
|
MUDA_GENERIC auto |
pitch_bytes () const
|
MUDA_GENERIC auto |
total_size () const
|
Public Functions inherited from muda::ViewerBase
See muda::ViewerBase
Protected Types
Type |
Name |
typedef typename Base::template auto_const_t< U > |
auto_const_t
|
Protected Types inherited from muda::ViewerBase
See muda::ViewerBase
Protected Attributes
Protected Functions
Type |
Name |
MUDA_INLINE MUDA_GENERIC void |
check () const
|
MUDA_INLINE MUDA_GENERIC void |
check_range (int x, int y) const
|
Protected Functions inherited from muda::ViewerBase
See muda::ViewerBase
Public Types Documentation
typedef ConstViewer
using muda::Dense2DBase< IsConst, T >::ConstViewer = Dense2DBase<true, T>;
typedef NonConstViewer
using muda::Dense2DBase< IsConst, T >::NonConstViewer = Dense2DBase<false, T>;
typedef ThisViewer
using muda::Dense2DBase< IsConst, T >::ThisViewer = Dense2DBase<IsConst, T>;
typedef value_type
using muda::Dense2DBase< IsConst, T >::value_type = T;
Public Functions Documentation
function Dense2DBase [1/2]
inline MUDA_GENERIC muda::Dense2DBase::Dense2DBase ()
function Dense2DBase [2/2]
inline MUDA_GENERIC muda::Dense2DBase::Dense2DBase (
auto_const_t< T > * p,
const int2 & offset,
const int2 & dim,
int pitch_bytes
)
function area
inline MUDA_GENERIC auto muda::Dense2DBase::area () const
function as_const
inline MUDA_GENERIC auto muda::Dense2DBase::as_const () const
function data [1/2]
inline MUDA_GENERIC auto_const_t< T > * muda::Dense2DBase::data ()
function data [2/2]
inline MUDA_GENERIC const T * muda::Dense2DBase::data () const
function dim
inline MUDA_GENERIC auto muda::Dense2DBase::dim () const
function flatten [1/2]
inline MUDA_GENERIC auto_const_t< T > & muda::Dense2DBase::flatten (
int i
)
function flatten [2/2]
inline MUDA_GENERIC const T & muda::Dense2DBase::flatten (
int i
) const
function operator ConstViewer
inline MUDA_GENERIC muda::Dense2DBase::operator ConstViewer () const
function operator() [1/4]
inline MUDA_GENERIC auto_const_t< T > & muda::Dense2DBase::operator() (
int x,
int y
)
function operator() [2/4]
inline MUDA_GENERIC auto_const_t< T > & muda::Dense2DBase::operator() (
const int2 & xy
)
function operator() [3/4]
inline MUDA_GENERIC const T & muda::Dense2DBase::operator() (
const int2 & xy
) const
function operator() [4/4]
inline MUDA_GENERIC const T & muda::Dense2DBase::operator() (
int x,
int y
) const
function pitch_bytes
inline MUDA_GENERIC auto muda::Dense2DBase::pitch_bytes () const
function total_size
inline MUDA_GENERIC auto muda::Dense2DBase::total_size () const
Protected Types Documentation
typedef auto_const_t
using muda::Dense2DBase< IsConst, T >::auto_const_t = typename Base::template auto_const_t<U>;
Protected Attributes Documentation
variable m_data
auto_const_t<T>* muda::Dense2DBase< IsConst, T >::m_data;
variable m_dim
int2 muda::Dense2DBase< IsConst, T >::m_dim;
variable m_offset
int2 muda::Dense2DBase< IsConst, T >::m_offset;
variable m_pitch_bytes
int muda::Dense2DBase< IsConst, T >::m_pitch_bytes;
Protected Functions Documentation
function check
inline MUDA_INLINE MUDA_GENERIC void muda::Dense2DBase::check () const
function check_range
inline MUDA_INLINE MUDA_GENERIC void muda::Dense2DBase::check_range (
int x,
int y
) const
The documentation for this class was generated from the following file src/muda/viewer/dense/dense_2d.h