#include <pointer.hpp>
Public Member Functions | |
Pointer () | |
Default constructor. | |
Pointer (const Size< Dim > &_size) | |
Constructor. | |
Pointer (const Layout< Type, Dim > &layout) | |
Constructor. | |
virtual | ~Pointer () |
Destructor. | |
Type & | operator[] (size_t i) |
Array index operator. | |
Type & | operator[] (const SizeBase< Dim > &i) |
Array index operator. | |
const Type & | operator[] (size_t i) const |
Array index operator. | |
const Type & | operator[] (const SizeBase< Dim > &i) const |
Array index operator. | |
iterator | begin () const |
Get iterator for begin of data. | |
iterator | end () const |
Get iterator for end of data. | |
const Type * | getBuffer () const |
Get buffer pointer. | |
Type * | getBuffer () |
Get buffer pointer. |
This is used as a virtual base class for all types of memory which can be accessed via a typed pointer. Host and device memory are accessible by pointers, but CUDA arrays are not.
Cuda::Pointer< Type, Dim >::Pointer | ( | const Size< Dim > & | _size | ) | [inline] |
Constructor.
_size | requested size |
Cuda::Pointer< Type, Dim >::Pointer | ( | const Layout< Type, Dim > & | layout | ) | [inline] |
Constructor.
layout | requested layout |
Type& Cuda::Pointer< Type, Dim >::operator[] | ( | size_t | i | ) | [inline] |
Type& Cuda::Pointer< Type, Dim >::operator[] | ( | const SizeBase< Dim > & | i | ) | [inline] |
const Type& Cuda::Pointer< Type, Dim >::operator[] | ( | size_t | i | ) | const [inline] |
const Type& Cuda::Pointer< Type, Dim >::operator[] | ( | const SizeBase< Dim > & | i | ) | const [inline] |
const Type* Cuda::Pointer< Type, Dim >::getBuffer | ( | ) | const [inline] |
Get buffer pointer.
Type* Cuda::Pointer< Type, Dim >::getBuffer | ( | ) | [inline] |
Get buffer pointer.