|  | 
| int | cols () const | 
|  | Returns number of elements in each row.  More... 
 | 
|  | 
| void | copyTo (DeviceArray2D &other) const | 
|  | Performs data copying. If destination size differs it will be reallocated.  More... 
 | 
|  | 
| void | create (int rows, int cols) | 
|  | Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing.  More... 
 | 
|  | 
|  | DeviceArray2D () | 
|  | Empty constructor.  More... 
 | 
|  | 
|  | DeviceArray2D (const DeviceArray2D &other) | 
|  | Copy constructor. Just increments reference counter.  More... 
 | 
|  | 
|  | DeviceArray2D (int rows, int cols) | 
|  | Allocates internal buffer in GPU memory.  More... 
 | 
|  | 
|  | DeviceArray2D (int rows, int cols, void *data, size_t stepBytes) | 
|  | Initializes with user allocated buffer. Reference counting is disabled in this case.  More... 
 | 
|  | 
| template<class A > | 
| void | download (std::vector< T, A > &data, int &cols) const | 
|  | Downloads data from internal buffer to CPU memory.  More... 
 | 
|  | 
| void | download (void *host_ptr, size_t host_step) const | 
|  | Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.  More... 
 | 
|  | 
| size_t | elem_step () const | 
|  | Returns step in elements.  More... 
 | 
|  | 
|  | operator const T * () const | 
|  | Returns const pointer for internal buffer in GPU memory.  More... 
 | 
|  | 
|  | operator T* () | 
|  | Returns pointer for internal buffer in GPU memory.  More... 
 | 
|  | 
| DeviceArray2D & | operator= (const DeviceArray2D &other) | 
|  | Assigment operator. Just increments reference counter.  More... 
 | 
|  | 
| T * | ptr (int y=0) | 
|  | Returns pointer to given row in internal buffer.  More... 
 | 
|  | 
| const T * | ptr (int y=0) const | 
|  | Returns const pointer to given row in internal buffer.  More... 
 | 
|  | 
| void | release () | 
|  | Decrements reference counter and releases internal buffer if needed.  More... 
 | 
|  | 
| int | rows () const | 
|  | Returns number of rows.  More... 
 | 
|  | 
| void | swap (DeviceArray2D &other_arg) | 
|  | Performs swap of data pointed with another device array.  More... 
 | 
|  | 
| template<class A > | 
| void | upload (const std::vector< T, A > &data, int cols) | 
|  | Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer size is enough.  More... 
 | 
|  | 
| void | upload (const void *host_ptr, size_t host_step, int rows, int cols) | 
|  | Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer size is enough.  More... 
 | 
|  | 
| int | colsBytes () const | 
|  | Returns number of bytes in each row.  More... 
 | 
|  | 
| void | copyTo (DeviceMemory2D &other) const | 
|  | Performs data copying. If destination size differs it will be reallocated.  More... 
 | 
|  | 
| void | create (int rows_arg, int colsBytes_arg) | 
|  | Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing.  More... 
 | 
|  | 
|  | DeviceMemory2D () | 
|  | Empty constructor.  More... 
 | 
|  | 
|  | DeviceMemory2D (const DeviceMemory2D &other_arg) | 
|  | Copy constructor. Just increments reference counter.  More... 
 | 
|  | 
|  | DeviceMemory2D (int rows_arg, int colsBytes_arg) | 
|  | Allocates internal buffer in GPU memory.  More... 
 | 
|  | 
|  | DeviceMemory2D (int rows_arg, int colsBytes_arg, void *data_arg, size_t step_arg) | 
|  | Initializes with user allocated buffer. Reference counting is disabled in this case.  More... 
 | 
|  | 
| void | download (void *host_ptr_arg, size_t host_step_arg) const | 
|  | Downloads data from internal buffer to CPU memory. User is resposible for correct host buffer size.  More... 
 | 
|  | 
| bool | empty () const | 
|  | Returns true if unallocated otherwise false.  More... 
 | 
|  | 
| template<class U > | 
|  | operator PtrStep< U > () const | 
|  | Conversion to PtrStep for passing to kernel functions.  More... 
 | 
|  | 
| template<class U > | 
|  | operator PtrStepSz< U > () const | 
|  | Conversion to PtrStepSz for passing to kernel functions.  More... 
 | 
|  | 
| DeviceMemory2D & | operator= (const DeviceMemory2D &other_arg) | 
|  | Assigment operator. Just increments reference counter.  More... 
 | 
|  | 
| template<class T > | 
| T * | ptr (int y_arg=0) | 
|  | Returns pointer to given row in internal buffer.  More... 
 | 
|  | 
| template<class T > | 
| const T * | ptr (int y_arg=0) const | 
|  | Returns constant pointer to given row in internal buffer.  More... 
 | 
|  | 
| void | release () | 
|  | Decrements reference counter and releases internal buffer if needed.  More... 
 | 
|  | 
| int | rows () const | 
|  | Returns number of rows.  More... 
 | 
|  | 
| size_t | step () const | 
|  | Returns stride between two consecutive rows in bytes for internal buffer. Step is stored always and everywhere in bytes!!!  More... 
 | 
|  | 
| void | swap (DeviceMemory2D &other_arg) | 
|  | Performs swap of data pointed with another device memory.  More... 
 | 
|  | 
| void | upload (const void *host_ptr_arg, size_t host_step_arg, int rows_arg, int colsBytes_arg) | 
|  | Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer size is enough.  More... 
 | 
|  | 
|  | ~DeviceMemory2D () | 
|  | Destructor.  More... 
 | 
|  | 
template<class T>
class kfusion::cuda::DeviceArray2D< T >
DeviceArray2D class 
- Note
- Typed container for pitched GPU memory with reference counting.
- Author
- Anatoly Baksheev 
Definition at line 117 of file device_array.hpp.