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

Representation of CPU memory managed by the CUDA Toolkit. More...

#include <hostmemory.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 HostMemoryStorage ()
 Default constructor.
 HostMemoryStorage (const Size< Dim > &_size)
 Constructor.
 HostMemoryStorage (const Layout< Type, Dim > &layout)
 Constructor.
template<class Type2>
 HostMemoryStorage (const HostMemory< Type2, Dim > &x)
 Constructor from different data type.
void init ()
 Initialize data structure.


Detailed Description

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

Representation of CPU memory managed by the CUDA Toolkit.

This is the base class for all kind of CPU memory for which memory management is performed by the CUDA Toolkit.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
_size requested size of memory block

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

Constructor.

Parameters:
layout requested layout of memory block

template<class Type, unsigned Dim>
template<class Type2>
Cuda::HostMemoryStorage< Type, Dim >::HostMemoryStorage ( const HostMemory< Type2, Dim > &  x  )  [inline]

Constructor from different data type.

Don't try to replicate layout, just use size.

Parameters:
x host memory data of different data type


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

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