Specialization of ArrayHelper for builtin/trivial types. More...
#include <Image/ArrayData.H>
Static Public Member Functions | |
static void | minimal_initialize (T *, int) |
For trivial types, we don't have to do anything here. | |
static void | minimal_initialize (T *, int, const MemoryPolicy, const int) |
For trivial types, we don't have to do anything here. | |
static void | zero_initialize (T *trg, int n) |
For trivial types, we just memset() all the memory to zero. | |
static void | zero_initialize (T *trg, int n, const MemoryPolicy mp, const int device) |
static void | copy_initialize (T *space, int n, const T *src) |
For trivial types, we just memcpy() into the destination. | |
static void | copy_initialize (T *trg, int n, const T *src, const MemoryPolicy trgmp, const int trgdev, const MemoryPolicy srcmp, const int srcdev) |
static void | destruct (T *, int) |
For trivial types, no destruction is needed. | |
static void | destruct (T *, int, const MemoryPolicy, const int) |
For trivial types, no destruction is needed. |
Specialization of ArrayHelper for builtin/trivial types.
We can do things much faster with these kinds of types, using e.g. memset() and memcpy(), and we don't have to do default initialization at all.
Definition at line 574 of file ArrayData.H.
static void ArrayHelper< T, true >::copy_initialize | ( | T * | space, | |
int | n, | |||
const T * | src | |||
) | [inline, static] |
For trivial types, we just memcpy() into the destination.
Definition at line 608 of file ArrayData.H.
static void ArrayHelper< T, true >::destruct | ( | T * | , | |
int | , | |||
const | MemoryPolicy, | |||
const | int | |||
) | [inline, static] |
For trivial types, no destruction is needed.
Definition at line 655 of file ArrayData.H.
static void ArrayHelper< T, true >::destruct | ( | T * | , | |
int | ||||
) | [inline, static] |
For trivial types, no destruction is needed.
Definition at line 652 of file ArrayData.H.
static void ArrayHelper< T, true >::minimal_initialize | ( | T * | , | |
int | , | |||
const | MemoryPolicy, | |||
const | int | |||
) | [inline, static] |
For trivial types, we don't have to do anything here.
Definition at line 580 of file ArrayData.H.
static void ArrayHelper< T, true >::minimal_initialize | ( | T * | , | |
int | ||||
) | [inline, static] |
For trivial types, we don't have to do anything here.
Definition at line 577 of file ArrayData.H.
static void ArrayHelper< T, true >::zero_initialize | ( | T * | trg, | |
int | n | |||
) | [inline, static] |
For trivial types, we just memset() all the memory to zero.
Definition at line 583 of file ArrayData.H.