Public Types | Public Member Functions | Static Public Member Functions

cmtk::DeviceArrayTemplate< DeviceArrayGPU > Class Template Reference
[cmtkGPU library]

Resource managing class template for type-specific memory allocated on a GPU device through . More...

#include <cmtkDeviceArray.h>

List of all members.

Public Types

typedef DeviceArrayTemplate
< DeviceArrayGPU > 
Self
 This class.
typedef SmartConstPointer< SelfSmartConstPtr
 Smart pointer-to-const.
typedef SmartPointer< SelfSmartPtr
 Smart pointer.
typedef DeviceArrayGPU Superclass
 Base class.

Public Member Functions

 DeviceArrayTemplate (const FixedVector< 3, int > &dims3)
 Constructor: allocate memory on device through base class.

Static Public Member Functions

static Self::SmartPtr Create (const FixedVector< 3, int > &dims3)
 Create new object and allocate memory.
static Self::SmartPtr Create (const FixedVector< 3, int > &dims3, const float *initFrom)
 Create new object, allocate, and initialize memory.

Detailed Description

template<class DeviceArrayGPU>
class cmtk::DeviceArrayTemplate< DeviceArrayGPU >

Resource managing class template for type-specific memory allocated on a GPU device through .

Definition at line 51 of file cmtkDeviceArray.h.


Member Typedef Documentation

template<class DeviceArrayGPU >
typedef DeviceArrayTemplate<DeviceArrayGPU> cmtk::DeviceArrayTemplate< DeviceArrayGPU >::Self

This class.

Definition at line 57 of file cmtkDeviceArray.h.

template<class DeviceArrayGPU >
typedef SmartConstPointer<Self> cmtk::DeviceArrayTemplate< DeviceArrayGPU >::SmartConstPtr

Smart pointer-to-const.

Definition at line 60 of file cmtkDeviceArray.h.

template<class DeviceArrayGPU >
typedef SmartPointer<Self> cmtk::DeviceArrayTemplate< DeviceArrayGPU >::SmartPtr

Smart pointer.

Definition at line 63 of file cmtkDeviceArray.h.

template<class DeviceArrayGPU >
typedef DeviceArrayGPU cmtk::DeviceArrayTemplate< DeviceArrayGPU >::Superclass

Base class.

Definition at line 66 of file cmtkDeviceArray.h.


Constructor & Destructor Documentation

template<class DeviceArrayGPU >
cmtk::DeviceArrayTemplate< DeviceArrayGPU >::DeviceArrayTemplate ( const FixedVector< 3, int > &  dims3 ) [inline]

Constructor: allocate memory on device through base class.

Definition at line 69 of file cmtkDeviceArray.h.


Member Function Documentation

template<class DeviceArrayGPU >
static Self::SmartPtr cmtk::DeviceArrayTemplate< DeviceArrayGPU >::Create ( const FixedVector< 3, int > &  dims3 ) [inline, static]

Create new object and allocate memory.

Parameters:
dims3Array dimensions

Definition at line 74 of file cmtkDeviceArray.h.

template<class DeviceArrayGPU >
static Self::SmartPtr cmtk::DeviceArrayTemplate< DeviceArrayGPU >::Create ( const FixedVector< 3, int > &  dims3,
const float *  initFrom 
) [inline, static]

Create new object, allocate, and initialize memory.

Parameters:
dims3Array dimensions
initFromInitialize from this region in host memory.

Definition at line 80 of file cmtkDeviceArray.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines