Cuda::Array< Type, Dim > Class Template Reference

Representation of CUDA array. More...

#include <array.hpp>

Inheritance diagram for Cuda::Array< Type, Dim >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::Array< Type, Dim >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Array ()
 Default constructor.
 Array (const Size< Dim > &_size)
 Constructor.
 Array (const Layout< Type, Dim > &layout)
 Constructor.
 ~Array ()
 Destructor.
void alloc ()
 Allocate GPU memory.
void alloc (const Size< Dim > &_size)
 Allocate GPU memory.
void free ()
 Free GPU memory.
cudaArray * getArray ()
 Get pointer to CUDA array structure.
const cudaArray * getArray () const
 Get pointer to CUDA array structure.
void init ()
 Initialize CUDA array pointer.


Detailed Description

template<class Type, unsigned Dim>
class Cuda::Array< Type, Dim >

Representation of CUDA array.

CUDA arrays allow access to texture hardware.


Constructor & Destructor Documentation

template<class Type, unsigned Dim>
Cuda::Array< Type, Dim >::Array ( const Size< Dim > &  _size  )  [inline]

Constructor.

Parameters:
_size requested size of array

template<class Type, unsigned Dim>
Cuda::Array< Type, Dim >::Array ( const Layout< Type, Dim > &  layout  )  [inline]

Constructor.

Parameters:
layout requested layout of array


Member Function Documentation

template<class Type, unsigned Dim>
void Cuda::Array< Type, Dim >::alloc ( const Size< Dim > &  _size  )  [inline]

Allocate GPU memory.

size to be allocated

Reimplemented from Cuda::Storage< Type, Dim >.

template<class Type, unsigned Dim>
cudaArray* Cuda::Array< Type, Dim >::getArray (  )  [inline]

Get pointer to CUDA array structure.

Returns:
pointer to cudaArray

template<class Type, unsigned Dim>
const cudaArray* Cuda::Array< Type, Dim >::getArray (  )  const [inline]

Get pointer to CUDA array structure.

Returns:
pointer to cudaArray


The documentation for this class was generated from the following file:

Generated on Sun Sep 13 00:55:17 2009 for cudatemplates by  doxygen 1.5.6