![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkOpenCLSize.h>
The OpenCLSize class defines the size of an item of work for an OpenCL kernel.
OpenCL sizes may be single-dimensional, two-dimensional, or three-dimensional:
Definition at line 49 of file itkOpenCLSize.h.
Data Structures | |
struct | Null |
Public Types | |
typedef OpenCLSize | Self |
typedef Size< 1 > | SizeType1D |
typedef Size< 2 > | SizeType2D |
typedef Size< 3 > | SizeType3D |
Public Member Functions | |
std::vcl_size_t | GetDepth () const |
cl_uint | GetDimension () const |
std::vcl_size_t | GetHeight () const |
const std::vcl_size_t * | GetSizes () const |
std::vcl_size_t | GetWidth () const |
bool | IsNull () const |
bool | IsZero () const |
OpenCLSize (const Null &) | |
OpenCLSize () | |
OpenCLSize (const std::vcl_size_t size) | |
OpenCLSize (const std::vcl_size_t width, const std::vcl_size_t height) | |
OpenCLSize (const std::vcl_size_t width, const std::vcl_size_t height, const std::vcl_size_t depth) | |
OpenCLSize (const SizeType1D &size) | |
OpenCLSize (const SizeType2D &size) | |
OpenCLSize (const SizeType3D &size) | |
OpenCLSize & | operator= (const Null &) |
std::vcl_size_t & | operator[] (const std::vcl_size_t dim) |
std::vcl_size_t | operator[] (const std::vcl_size_t dim) const |
OpenCLSize | RoundTo (const OpenCLSize &size) const |
Static Public Member Functions | |
static OpenCLSize | GetLocalWorkSize (const OpenCLSize &maxWorkItemSize, const std::vcl_size_t maxItemsPerGroup) |
static OpenCLSize | GetLocalWorkSize (const OpenCLDevice &device) |
Static Public Attributes | |
static const Null | null |
Private Attributes | |
cl_uint | m_Dim |
std::vcl_size_t | m_Sizes [3] |
typedef OpenCLSize itk::OpenCLSize::Self |
Standard class typedefs.
Definition at line 54 of file itkOpenCLSize.h.
typedef Size< 1 > itk::OpenCLSize::SizeType1D |
Definition at line 56 of file itkOpenCLSize.h.
typedef Size< 2 > itk::OpenCLSize::SizeType2D |
Definition at line 57 of file itkOpenCLSize.h.
typedef Size< 3 > itk::OpenCLSize::SizeType3D |
Definition at line 58 of file itkOpenCLSize.h.
|
inline |
Definition at line 63 of file itkOpenCLSize.h.
|
inline |
Constructs a default size consisting of a single dimension with width set to 1.
Definition at line 72 of file itkOpenCLSize.h.
|
inline |
Constructs a single-dimensional size with width set to size. The height and depth will be set to 1.
Definition at line 78 of file itkOpenCLSize.h.
|
inline |
Constructs a two-dimensional size of width, height. The depth will be set to 1.
Definition at line 84 of file itkOpenCLSize.h.
|
inline |
Constructs a three-dimensional size of width, height and depth.
Definition at line 89 of file itkOpenCLSize.h.
|
inline |
Constructs a single-dimensional size from one dimention itk::Size. The height and depth will be set to 1.
Definition at line 96 of file itkOpenCLSize.h.
|
inline |
Constructs a two-dimensional size from two-dimention itk::Size. The depth will be set to 1.
Definition at line 103 of file itkOpenCLSize.h.
|
inline |
Constructs a three-dimensional size from three-dimention itk::Size.
Definition at line 109 of file itkOpenCLSize.h.
|
inline |
Returns the depth of this size.
Definition at line 123 of file itkOpenCLSize.h.
|
inline |
Returns the dimension for this size, 1, 2, or 3.
Definition at line 114 of file itkOpenCLSize.h.
|
inline |
Returns the height of this size.
Definition at line 120 of file itkOpenCLSize.h.
|
static |
Returns the best-fit local work size that evenly divides this work size and fits within the maximums defined by maxWorkItemSize and maxItemsPerGroup. This function is typically used to convert an arbitrary global work size on a OpenCLKernel into a compatible local work size.
|
static |
Returns the best-fit local work size that evenly divides this work size and fits within the maximum work group size of device. This function is typically used to convert an arbitrary global work size on a OpenCLKernel into a compatible local work size.
|
inline |
Returns a const pointer to the size array within this object.
Definition at line 126 of file itkOpenCLSize.h.
|
inline |
Returns the width of this size.
Definition at line 117 of file itkOpenCLSize.h.
|
inline |
Definition at line 68 of file itkOpenCLSize.h.
bool itk::OpenCLSize::IsZero | ( | ) | const |
Returns true if the elements are zero, otherwise returns false.
|
inline |
Definition at line 67 of file itkOpenCLSize.h.
|
inline |
Access an element of the size. Elements are numbered 0, ..., Dim-1. No bounds checking is performed.
Definition at line 133 of file itkOpenCLSize.h.
|
inline |
Access an element of the size. Elements are numbered 0, ..., Dim-1. This version can only be an rvalue. No bounds checking is performed.
Definition at line 139 of file itkOpenCLSize.h.
OpenCLSize itk::OpenCLSize::RoundTo | ( | const OpenCLSize & | size | ) | const |
Returns the result of rounding this work size up to a multiple of size.
|
private |
Definition at line 161 of file itkOpenCLSize.h.
|
private |
Definition at line 162 of file itkOpenCLSize.h.
|
static |
Definition at line 62 of file itkOpenCLSize.h.
Generated on 07-03-2016 for elastix by ![]() |
![]() |