rutz::cuda_free_list< T > Class Template Reference

Typesafe wrapper of free_list_base for maintaining free-list memory pools. More...

#include <CUDA/cudafreelist.H>

Collaboration diagram for rutz::cuda_free_list< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cuda_free_list ()
 Construct an (empty) free list.
void * allocate (std::size_t bytes, int dev)
void deallocate (void *space, int dev)
void release_free_nodes ()
 Release all nodes currently on the free list (e.g. to conserve memory).
int get_num_nodes (int dev)

Detailed Description

template<class T>
class rutz::cuda_free_list< T >

Typesafe wrapper of free_list_base for maintaining free-list memory pools.

Definition at line 102 of file cudafreelist.H.


Constructor & Destructor Documentation

template<class T >
rutz::cuda_free_list< T >::cuda_free_list (  )  [inline]

Construct an (empty) free list.

All objects allocated from this list must be of size sizeof(T).

Definition at line 110 of file cudafreelist.H.


Member Function Documentation

template<class T >
void rutz::cuda_free_list< T >::release_free_nodes (  )  [inline]

Release all nodes currently on the free list (e.g. to conserve memory).

Definition at line 123 of file cudafreelist.H.

References rutz::cuda_free_list_base::release_free_nodes().


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:44:43 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3