CARMA C++
carma::util::FftwAllocator< T > Class Template Reference

Allocator for memory for use by FFTW. More...

#include <carma/util/FftwAllocator.h>

Public Types

typedef const T * const_pointer
 
typedef const T & const_reference
 
typedef ptrdiff_t difference_type
 
typedef T * pointer
 
typedef T & reference
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

pointer address (reference value) const
 
const_pointer address (const_reference value) const
 
pointer allocate (size_type num, const void *hint=0)
 
void construct (pointer p, const T &value)
 
void deallocate (pointer p, size_type num)
 
void destroy (pointer p)
 
 FftwAllocator () throw ( )
 Constructors and destructor. More...
 
 FftwAllocator (const FftwAllocator &) throw ( )
 
template<class U >
 FftwAllocator (const FftwAllocator< U > &) throw ( )
 
size_type max_size () const throw ( )
 

Detailed Description

template<class T>
class carma::util::FftwAllocator< T >

Allocator for memory for use by FFTW.

In order for fftw to take advantage of specific processor features like SIMD instruction sets, allocated memory must be properly alligned. FFTW provides the fftw_malloc and fftw_free functions for this purpose which this allocator uses.

Definition at line 30 of file FftwAllocator.h.

Constructor & Destructor Documentation

template<class T >
carma::util::FftwAllocator< T >::FftwAllocator ( )
throw (
)

Constructors and destructor.

  • nothing to do because the allocator has no state

Definition at line 63 of file FftwAllocator.h.


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