Skip to content

Class muda::DeviceBuffer2D

template <typename T>

ClassList > muda > DeviceBuffer2D

Public Types

Type Name
typedef T value_type

Public Functions

Type Name
DeviceBuffer2D (const Extent2D & n)
DeviceBuffer2D ()
DeviceBuffer2D (const DeviceBuffer2D< T > & other)
DeviceBuffer2D (DeviceBuffer2D && other)
DeviceBuffer2D (CBuffer2DView< T > other)
auto capacity () const
void clear ()
void copy_from (const std::vector< T > & host)
void copy_to (std::vector< T > & host) const
CDense2D< T > cviewer () const
T * data ()
const T * data () const
auto extent () const
void fill (const T & v)
operator Buffer2DView< T > ()
operator CBuffer2DView< T > () const
DeviceBuffer2D & operator= (const DeviceBuffer2D< T > & other)
DeviceBuffer2D & operator= (DeviceBuffer2D< T > && other)
DeviceBuffer2D & operator= (CBuffer2DView< T > other)
auto pitch_bytes () const
void reserve (Extent2D new_capacity)
void resize (Extent2D new_extent)
void resize (Extent2D new_extent, const T & value)
void shrink_to_fit ()
auto total_size () const
Buffer2DView< T > view (Offset2D offset, Extent2D extent={})
Buffer2DView< T > view ()
CBuffer2DView< T > view (Offset2D offset, Extent2D extent={}) const
CBuffer2DView< T > view () const
Dense2D< T > viewer ()
~DeviceBuffer2D ()

Public Types Documentation

typedef value_type

using muda::DeviceBuffer2D< T >::value_type =  T;

Public Functions Documentation

function DeviceBuffer2D [1/5]

muda::DeviceBuffer2D::DeviceBuffer2D (
    const Extent2D & n
) 

function DeviceBuffer2D [2/5]

muda::DeviceBuffer2D::DeviceBuffer2D () 

function DeviceBuffer2D [3/5]

muda::DeviceBuffer2D::DeviceBuffer2D (
    const DeviceBuffer2D < T > & other
) 

function DeviceBuffer2D [4/5]

muda::DeviceBuffer2D::DeviceBuffer2D (
    DeviceBuffer2D && other
) 

function DeviceBuffer2D [5/5]

muda::DeviceBuffer2D::DeviceBuffer2D (
    CBuffer2DView < T > other
) 

function capacity

inline auto muda::DeviceBuffer2D::capacity () const

function clear

void muda::DeviceBuffer2D::clear () 

function copy_from

void muda::DeviceBuffer2D::copy_from (
    const std::vector< T > & host
) 

function copy_to

void muda::DeviceBuffer2D::copy_to (
    std::vector< T > & host
) const

function cviewer

inline CDense2D < T > muda::DeviceBuffer2D::cviewer () const

function data [1/2]

inline T * muda::DeviceBuffer2D::data () 

function data [2/2]

inline const T * muda::DeviceBuffer2D::data () const

function extent

inline auto muda::DeviceBuffer2D::extent () const

function fill

void muda::DeviceBuffer2D::fill (
    const T & v
) 

function operator Buffer2DView< T >

inline muda::DeviceBuffer2D::operator Buffer2DView< T > () 

function operator CBuffer2DView< T >

inline muda::DeviceBuffer2D::operator CBuffer2DView< T > () const

function operator=

DeviceBuffer2D & muda::DeviceBuffer2D::operator= (
    const DeviceBuffer2D < T > & other
) 

function operator=

DeviceBuffer2D & muda::DeviceBuffer2D::operator= (
    DeviceBuffer2D < T > && other
) 

function operator=

DeviceBuffer2D & muda::DeviceBuffer2D::operator= (
    CBuffer2DView < T > other
) 

function pitch_bytes

inline auto muda::DeviceBuffer2D::pitch_bytes () const

function reserve

void muda::DeviceBuffer2D::reserve (
    Extent2D new_capacity
) 

function resize [1/2]

void muda::DeviceBuffer2D::resize (
    Extent2D new_extent
) 

function resize [2/2]

void muda::DeviceBuffer2D::resize (
    Extent2D new_extent,
    const T & value
) 

function shrink_to_fit

void muda::DeviceBuffer2D::shrink_to_fit () 

function total_size

inline auto muda::DeviceBuffer2D::total_size () const

function view [1/4]

inline Buffer2DView < T > muda::DeviceBuffer2D::view (
    Offset2D offset,
    Extent2D extent={}
) 

function view [2/4]

inline Buffer2DView < T > muda::DeviceBuffer2D::view () 

function view [3/4]

inline CBuffer2DView < T > muda::DeviceBuffer2D::view (
    Offset2D offset,
    Extent2D extent={}
) const

function view [4/4]

inline CBuffer2DView < T > muda::DeviceBuffer2D::view () const

function viewer

inline Dense2D < T > muda::DeviceBuffer2D::viewer () 

function ~DeviceBuffer2D

muda::DeviceBuffer2D::~DeviceBuffer2D () 


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