Cuda::Array2D< Type > Class Template Reference

Array template specialized for 2 dimension(s). More...

#include <specdim_array2d.hpp>

Inheritance diagram for Cuda::Array2D< Type >:

Inheritance graph
[legend]
Collaboration diagram for Cuda::Array2D< Type >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Array2D ()
 Default constructor.
 Array2D (const Size< 2 > &_size)
 Constructor.
 Array2D (const Layout< Type, 2 > &layout)
 Constructor.
 Array2D (size_t size0, size_t size1)
 Constructor.
 Array2D (const Array2D< Type > &x)
 Copy constructor.
template<class Name>
 Array2D (const Name &x)
 Constructor.
template<class Name>
 Array2D (const Name &x, const Size< 2 > &ofs, const Size< 2 > &size)
 Constructor.
template<class Name>
 Array2D (const Name &x, size_t ofs0, size_t ofs1, size_t size0, size_t size1)
 Constructor.
void alloc ()
 Allocate memory.
void alloc (const Size< 2 > &_size)
 Allocate memory.
void alloc (size_t size0, size_t size1)
 Allocate memory.


Detailed Description

template<class Type>
class Cuda::Array2D< Type >

Array template specialized for 2 dimension(s).

Constructor & Destructor Documentation

template<class Type>
Cuda::Array2D< Type >::Array2D ( const Size< 2 > &  _size  )  [inline]

Constructor.

Parameters:
_size requested size of memory block.

template<class Type>
Cuda::Array2D< Type >::Array2D ( const Layout< Type, 2 > &  layout  )  [inline]

Constructor.

Parameters:
layout requested layout of memory block.

template<class Type>
Cuda::Array2D< Type >::Array2D ( const Array2D< Type > &  x  )  [inline]

Copy constructor.

Parameters:
x instance of Array2D to be copied

template<class Type>
template<class Name>
Cuda::Array2D< Type >::Array2D ( const Name &  x  )  [inline]

Constructor.

Initialization from different type.

Parameters:
x instance of different type to be copied

template<class Type>
template<class Name>
Cuda::Array2D< Type >::Array2D ( const Name &  x,
const Size< 2 > &  ofs,
const Size< 2 > &  size 
) [inline]

Constructor.

Initialization of region from same or different type.

Parameters:
x instance to be copied
ofs offset of region
size size of region

template<class Type>
template<class Name>
Cuda::Array2D< Type >::Array2D ( const Name &  x,
size_t  ofs0,
size_t  ofs1,
size_t  size0,
size_t  size1 
) [inline]

Constructor.

Initialization of region from same or different type.

Parameters:
x instance to be copied
ofs0,ofs1 offset of region
size0,size1 size of region


Member Function Documentation

template<class Type>
void Cuda::Array2D< Type >::alloc ( const Size< 2 > &  _size  )  [inline]

Allocate memory.

Parameters:
_size size to be allocated

template<class Type>
void Cuda::Array2D< Type >::alloc ( size_t  size0,
size_t  size1 
) [inline]

Allocate memory.

size0, size1 size to be allocated


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

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