Class muda::BufferViewT
template <bool IsConst, typename T>
ClassList > muda > BufferViewT
Inherits the following classes: muda::ViewBase
Public Types
Type | Name |
---|---|
typedef CDense1D< T > | CViewer |
typedef BufferViewT< true, T > | ConstView |
typedef BufferViewT< IsConst, T > | ThisView |
typedef std::conditional_t< IsConst, CViewer, Viewer > | ThisViewer |
typedef Dense1D< T > | Viewer |
typedef typename Base::template auto_const_t< U > | auto_const_t |
typedef size_t | difference_type |
typedef std::random_access_iterator_tag | iterator_category |
typedef T * | pointer |
typedef T & | reference |
typedef T | value_type |
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 | BufferViewT () |
MUDA_GENERIC | BufferViewT (const BufferViewT & other) |
MUDA_GENERIC | BufferViewT (auto_const_t< T > * data, size_t offset, size_t size) |
MUDA_GENERIC | BufferViewT (auto_const_t< T > * data, size_t size) |
MUDA_GENERIC | BufferViewT (const BufferViewT< OtherIsConst, T > & other) |
MUDA_GENERIC ConstView | as_const () const |
MUDA_HOST void | copy_from (const BufferViewT< 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 () const |
MUDA_GENERIC auto_const_t< T > * | data (size_t i) const |
MUDA_HOST void | fill (const T & value) const |
MUDA_GENERIC size_t | offset () const |
MUDA_GENERIC reference | operator* () const |
MUDA_GENERIC ThisView | operator+ (int i) const |
MUDA_GENERIC auto_const_t< T > & | operator[] (size_t i) const |
MUDA_GENERIC auto_const_t< T > & | operator[] (int i) const |
MUDA_GENERIC auto_const_t< T > * | origin_data () const |
MUDA_GENERIC size_t | size () const |
MUDA_GENERIC ThisView | subview (size_t offset, size_t size=~0) const |
MUDA_GENERIC ThisViewer | viewer () const |
Protected Attributes
Type | Name |
---|---|
auto_const_t< T > * | m_data = = nullptr |
size_t | m_offset = = ~0 |
size_t | m_size = = ~0 |
Public Types Documentation
typedef CViewer
typedef ConstView
typedef ThisView
typedef ThisViewer
typedef Viewer
typedef auto_const_t
typedef difference_type
typedef iterator_category
typedef pointer
typedef reference
typedef value_type
Public Functions Documentation
function BufferViewT [2/6]
function BufferViewT [3/6]
function BufferViewT [4/6]
MUDA_GENERIC muda::BufferViewT::BufferViewT (
auto_const_t< T > * data,
size_t offset,
size_t size
)
function BufferViewT [5/6]
function BufferViewT [6/6]
template<bool OtherIsConst>
MUDA_GENERIC muda::BufferViewT::BufferViewT (
const BufferViewT < OtherIsConst, T > & other
)
function as_const
function copy_from [1/2]
function copy_from [2/2]
function copy_to
function cviewer
function data [1/2]
function data [2/2]
function fill
function offset
function operator*
function operator+
function operator[]
function operator[]
function origin_data
function size
function subview
function viewer
Protected Attributes Documentation
variable m_data
variable m_offset
variable m_size
The documentation for this class was generated from the following file src/muda/buffer/buffer_view.h