Image Utilities (IU)
|
Base class for N-dimensional unsigned int vectors (size vectors). More...
#include <vector.h>
Public Member Functions | |
SizeBase (unsigned int value) | |
SizeBase (std::initializer_list< unsigned int > list) | |
virtual | ~SizeBase () |
unsigned int | numel () const |
template<typename ScalarType > | |
SizeBase | operator* (const ScalarType &scalar) const |
template<typename ScalarType > | |
void | operator*= (const ScalarType &scalar) |
template<typename ScalarType > | |
SizeBase | operator/ (const ScalarType &scalar) const |
template<typename ScalarType > | |
void | operator/= (const ScalarType &scalar) |
SizeBase (const SizeBase &from) | |
SizeBase & | operator= (const SizeBase &from) |
unsigned int * | ptr () |
const unsigned int * | ptr () const |
Public Member Functions inherited from iu::VectorBase< unsigned int, Ndim > | |
VectorBase () | |
VectorBase (const unsigned int &value) | |
VectorBase (std::initializer_list< unsigned int > list) | |
virtual | ~VectorBase () |
unsigned int | operator[] (unsigned int i) const |
unsigned int & | operator[] (unsigned int i) |
void | fill (const unsigned int &value) |
Additional Inherited Members | |
Static Public Member Functions inherited from iu::VectorBase< unsigned int, Ndim > | |
static unsigned int | ndim () |
Protected Attributes inherited from iu::VectorBase< unsigned int, Ndim > | |
unsigned int | data_ [Ndim] |
Base class for N-dimensional unsigned int vectors (size vectors).
|
inline |
Special Constructor. Init all elements of the size vector with a special value.
value | value to initialize size vector elements. |
|
inline |
Special Constructor. Init all elements of the vector with a initializer list.
list | Initializer list, e.g. {1,2,3}. |
|
inlinevirtual |
Destructor.
|
inline |
Public copy constructor.
|
inline |
Multiply all entries of the size vector to get the total number of elements.
|
inline |
Overload operator*. Multiplication with scalar and perform round operation.
|
inline |
Overload operator*=. Multiplication with scalar and perform round operation.
|
inline |
Overload operator/. Divide by scalar and perform round operation.
|
inline |
Overload operator/=. Divide by scalar and perform round operation.
|
inline |
Public copy assignment operator.
|
inline |
Get data buffer. This is used in LinearDeviceMemory::KernelData, ImageGpu::KernelData and VolumeGpu::KernelData to copy the size vector from host to device.
|
inline |
Get const data buffer. This is used in LinearDeviceMemory::KernelData, ImageGpu::KernelData and VolumeGpu::KernelData to copy the size vector from host to device.