ArrayHelper< T, true > Struct Template Reference

Specialization of ArrayHelper for builtin/trivial types. More...

#include <Image/ArrayData.H>

List of all members.

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.

Detailed Description

template<class T>
struct ArrayHelper< T, true >

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.


Member Function Documentation

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
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.

template<class T >
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.


The documentation for this struct was generated from the following file:
Generated on Sun May 8 08:19:58 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3