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

Representation of heap memory on the CPU. More...

#include <hostmemoryheap.hpp>

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

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 HostMemoryHeap ()
 Default constructor.
 HostMemoryHeap (const Size< Dim > &_size)
 Constructor.
 HostMemoryHeap (const Layout< Type, Dim > &layout)
 Constructor.
template<class Type2>
 HostMemoryHeap (const HostMemoryHeap< Type2, Dim > &x)
 Constructor from different data type.
 ~HostMemoryHeap ()
 Destructor.
void alloc ()
 Allocate CPU memory.
void alloc (const Size< Dim > &_size)
 Allocate CPU memory.
void free ()
 Free CPU memory.


Detailed Description

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

Representation of heap memory on the CPU.

Constructor & Destructor Documentation

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

Constructor.

Parameters:
_size requested size of memory block

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

Constructor.

Parameters:
layout requested layout of memory block

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

Constructor from different data type.

Parameters:
x host memory data of different data type


Member Function Documentation

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

Allocate CPU memory.

Parameters:
_size requested size

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


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

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