Skip to content

Class muda::Buffer3DViewT

template <bool IsConst, typename T>

ClassList > muda > Buffer3DViewT

Inherits the following classes: muda::ViewBase

Public Types

Type Name
typedef CDense3D< T > CViewer
typedef Buffer3DViewT< true, T > ConstView
typedef Buffer3DViewT< false, T > NonConstView
typedef Buffer3DViewT<!IsConst, T > OtherView
typedef Buffer3DViewT< IsConst, T > ThisView
typedef std::conditional_t< IsConst, CViewer, Viewer > ThisViewer
typedef Dense3D< T > Viewer

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 Buffer3DViewT ()
MUDA_GENERIC Buffer3DViewT (const Buffer3DViewT &)
MUDA_GENERIC Buffer3DViewT (const Buffer3DViewT< OtherIsConst, T > & other)
MUDA_GENERIC Buffer3DViewT (auto_const_t< T > * data, size_t pitch_bytes, size_t pitch_bytes_area, size_t origin_width, size_t origin_height, const Offset3D & offset, const Extent3D & extent)
MUDA_GENERIC Buffer3DViewT (T * data, size_t pitch_bytes, size_t pitch_bytes_area, const Offset3D & offset, const Extent3D & extent)
MUDA_GENERIC ConstView as_const () const
MUDA_HOST void copy_from (const Buffer3DViewT< true, T > & other) const
MUDA_HOST void copy_from (const T * host) const
MUDA_HOST void copy_to (T * host) const
MUDA_GENERIC CViewer cviewer () const
MUDA_GENERIC auto_const_t< T > * data (size_t x, size_t y, size_t z) const
MUDA_GENERIC auto_const_t< T > * data (size_t flatten_i) const
MUDA_GENERIC Extent3D extent () const
MUDA_HOST void fill (const T & v) const
MUDA_GENERIC Offset3D offset () const
MUDA_GENERIC auto_const_t< T > * origin_data () const
MUDA_GENERIC size_t pitch_bytes () const
MUDA_GENERIC size_t pitch_bytes_area () const
MUDA_GENERIC ThisView subview (Offset3D offset, Extent3D extent={}) const
MUDA_GENERIC size_t total_size () const
MUDA_GENERIC ThisViewer viewer () const

Protected Attributes

Type Name
auto_const_t< T > * m_data = = nullptr
Extent3D m_extent
Offset3D m_offset
size_t m_origin_height = = ~0
size_t m_origin_width = = ~0
size_t m_pitch_bytes = = ~0
size_t m_pitch_bytes_area = = ~0

Public Types Documentation

typedef CViewer

using muda::Buffer3DViewT< IsConst, T >::CViewer =  CDense3D<T>;

typedef ConstView

using muda::Buffer3DViewT< IsConst, T >::ConstView =  Buffer3DViewT<true, T>;

typedef NonConstView

using muda::Buffer3DViewT< IsConst, T >::NonConstView =  Buffer3DViewT<false, T>;

typedef OtherView

using muda::Buffer3DViewT< IsConst, T >::OtherView =  Buffer3DViewT<!IsConst, T>;

typedef ThisView

using muda::Buffer3DViewT< IsConst, T >::ThisView =  Buffer3DViewT<IsConst, T>;

typedef ThisViewer

using muda::Buffer3DViewT< IsConst, T >::ThisViewer =  std::conditional_t<IsConst, CViewer, Viewer>;

typedef Viewer

using muda::Buffer3DViewT< IsConst, T >::Viewer =  Dense3D<T>;

Public Functions Documentation

function Buffer3DViewT [2/6]

MUDA_GENERIC muda::Buffer3DViewT::Buffer3DViewT () 

function Buffer3DViewT [3/6]

MUDA_GENERIC muda::Buffer3DViewT::Buffer3DViewT (
    const Buffer3DViewT &
) 

function Buffer3DViewT [4/6]

template<bool OtherIsConst>
MUDA_GENERIC muda::Buffer3DViewT::Buffer3DViewT (
    const Buffer3DViewT < OtherIsConst, T > & other
) 

function Buffer3DViewT [5/6]

MUDA_GENERIC muda::Buffer3DViewT::Buffer3DViewT (
    auto_const_t< T > * data,
    size_t pitch_bytes,
    size_t pitch_bytes_area,
    size_t origin_width,
    size_t origin_height,
    const Offset3D & offset,
    const Extent3D & extent
) 

function Buffer3DViewT [6/6]

MUDA_GENERIC muda::Buffer3DViewT::Buffer3DViewT (
    T * data,
    size_t pitch_bytes,
    size_t pitch_bytes_area,
    const Offset3D & offset,
    const Extent3D & extent
) 

function as_const

MUDA_GENERIC ConstView muda::Buffer3DViewT::as_const () const

function copy_from [1/2]

MUDA_HOST void muda::Buffer3DViewT::copy_from (
    const Buffer3DViewT < true, T > & other
) const

function copy_from [2/2]

MUDA_HOST void muda::Buffer3DViewT::copy_from (
    const T * host
) const

function copy_to

MUDA_HOST void muda::Buffer3DViewT::copy_to (
    T * host
) const

function cviewer

MUDA_GENERIC CViewer muda::Buffer3DViewT::cviewer () const

function data [1/2]

MUDA_GENERIC auto_const_t< T > * muda::Buffer3DViewT::data (
    size_t x,
    size_t y,
    size_t z
) const

function data [2/2]

MUDA_GENERIC auto_const_t< T > * muda::Buffer3DViewT::data (
    size_t flatten_i
) const

function extent

MUDA_GENERIC Extent3D muda::Buffer3DViewT::extent () const

function fill

MUDA_HOST void muda::Buffer3DViewT::fill (
    const T & v
) const

function offset

MUDA_GENERIC Offset3D muda::Buffer3DViewT::offset () const

function origin_data

MUDA_GENERIC auto_const_t< T > * muda::Buffer3DViewT::origin_data () const

function pitch_bytes

MUDA_GENERIC size_t muda::Buffer3DViewT::pitch_bytes () const

function pitch_bytes_area

MUDA_GENERIC size_t muda::Buffer3DViewT::pitch_bytes_area () const

function subview

MUDA_GENERIC ThisView muda::Buffer3DViewT::subview (
    Offset3D offset,
    Extent3D extent={}
) const

function total_size

MUDA_GENERIC size_t muda::Buffer3DViewT::total_size () const

function viewer

MUDA_GENERIC ThisViewer muda::Buffer3DViewT::viewer () const

Protected Attributes Documentation

variable m_data

auto_const_t<T>* muda::Buffer3DViewT< IsConst, T >::m_data;

variable m_extent

Extent3D muda::Buffer3DViewT< IsConst, T >::m_extent;

variable m_offset

Offset3D muda::Buffer3DViewT< IsConst, T >::m_offset;

variable m_origin_height

size_t muda::Buffer3DViewT< IsConst, T >::m_origin_height;

variable m_origin_width

size_t muda::Buffer3DViewT< IsConst, T >::m_origin_width;

variable m_pitch_bytes

size_t muda::Buffer3DViewT< IsConst, T >::m_pitch_bytes;

variable m_pitch_bytes_area

size_t muda::Buffer3DViewT< IsConst, T >::m_pitch_bytes_area;

Friends Documentation

friend BufferInfoAccessor

class muda::Buffer3DViewT::BufferInfoAccessor (
    details::buffer::BufferInfoAccessor
) 


The documentation for this class was generated from the following file src/muda/buffer/buffer_3d_view.h