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

Representation of CPU memory. More...

#include <hostmemory.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

HostMemoryReference< Type, Dim-1 > getSlice (unsigned int slice)
 Returns a single slice from a higher dimensional dataset.

Protected Member Functions

 HostMemory ()
 Default constructor.
 HostMemory (const Size< Dim > &_size)
 Constructor.
 HostMemory (const Layout< Type, Dim > &layout)
 Constructor.


Detailed Description

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

Representation of CPU memory.

This is the base class for all kind of CPU memory.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
_size requested size of memory block

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

Constructor.

Parameters:
layout requested layout of memory block


Member Function Documentation

template<class Type, unsigned Dim>
HostMemoryReference<Type, Dim-1> Cuda::HostMemory< Type, Dim >::getSlice ( unsigned int  slice  )  [inline]

Returns a single slice from a higher dimensional dataset.

Keeps region of interest and other information.

Parameters:
slice slice to which reference will be created


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