#include <itkOpenCLVectorBase.h>
The base class for the OpenCLVector implementation.
- See also
- OpenCLVector
Definition at line 37 of file itkOpenCLVectorBase.h.
◆ OpenCLVectorBase() [1/2]
itk::OpenCLVectorBase::OpenCLVectorBase |
( |
const std::vcl_size_t | elemSize | ) |
|
|
protected |
Creates a vector with elemSize.
◆ OpenCLVectorBase() [2/2]
itk::OpenCLVectorBase::OpenCLVectorBase |
( |
const std::vcl_size_t | elemSize, |
|
|
const OpenCLVectorBase & | other ) |
|
protected |
Creates a copy of the other vector reference with elemSize. The vector's contents are not duplicated, modifications to this vector will also affect other.
◆ ~OpenCLVectorBase()
itk::OpenCLVectorBase::~OpenCLVectorBase |
( |
| ) |
|
|
protected |
Destroys this vector reference. If this is the last reference to the underlying data, the vector will be unmapped and deallocated.
◆ Assign()
Assign vector and take ownership.
◆ Create()
A vector object is created using the following method.
◆ GetContext()
Returns the OpenCL context that created this memory object.
◆ GetKernelArgument()
cl_mem itk::OpenCLVectorBase::GetKernelArgument |
( |
| ) |
const |
|
protected |
Unmaps and returns the native OpenCL identifier for this memory object.
◆ GetMemoryId()
cl_mem itk::OpenCLVectorBase::GetMemoryId |
( |
| ) |
const |
|
protected |
Returns the native OpenCL identifier for this memory object.
◆ Map()
void itk::OpenCLVectorBase::Map |
( |
| ) |
|
|
protected |
Enqueues a command to map a region of the buffer object given by buffer into the host address.
- See also
- Unmap()
◆ Read()
void itk::OpenCLVectorBase::Read |
( |
void * | data, |
|
|
const std::vcl_size_t | size, |
|
|
const std::vcl_size_t | offset = 0 ) |
|
protected |
The following functions enqueue commands to read from a buffer object to host memory.
- See also
- Write()
◆ Release()
void itk::OpenCLVectorBase::Release |
( |
| ) |
|
|
protected |
Decrements the memobj reference count.
◆ Unmap()
void itk::OpenCLVectorBase::Unmap |
( |
| ) |
const |
|
protected |
Enqueues a command to unmap a previously mapped region of a memory object.
- See also
- Map()
◆ Write()
void itk::OpenCLVectorBase::Write |
( |
const void * | data, |
|
|
const std::vcl_size_t | size, |
|
|
const std::vcl_size_t | offset = 0 ) |
|
protected |
The following functions enqueue commands to write from a buffer object to host memory.
- See also
- Read()
◆ OpenCLKernel
◆ d_ptr
OpenCLVectorBasePimpl* itk::OpenCLVectorBase::d_ptr |
|
protected |
◆ m_ElementSize
std::vcl_size_t itk::OpenCLVectorBase::m_ElementSize |
|
protected |
◆ m_Mapped
void* itk::OpenCLVectorBase::m_Mapped |
|
mutableprotected |
◆ m_Size
std::vcl_size_t itk::OpenCLVectorBase::m_Size |
|
protected |