JayBeams  0.1
Another project to have fun coding.
Classes | Public Types | Public Member Functions | List of all members
jb::fftw::allocator< T > Class Template Reference

Define an allocator based on fftw_malloc()/fftw_free() More...

#include <allocator.hpp>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef value_typepointer
 
typedef value_type const * const_pointer
 
typedef void * void_pointer
 
typedef void const * const_void_pointer
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

pointer address (T &object) const
 
const_pointer address (T const &object) const
 
size_type max_size () const
 
template<typename... Args>
void construct (pointer p, Args &&... args)
 
void destroy (pointer p)
 
pointer allocate (size_type count, const void *=0)
 
void deallocate (pointer p, size_type count)
 
bool operator== (allocator const &rhs) const
 
bool operator!= (allocator const &rhs) const
 

Detailed Description

template<typename T>
class jb::fftw::allocator< T >

Define an allocator based on fftw_malloc()/fftw_free()

FFTW3 provides functions to allocate memory aligned to whatever requirements the vectorized instructions require.

Definition at line 18 of file allocator.hpp.


Class Documentation

◆ jb::fftw::allocator::rebind

struct jb::fftw::allocator::rebind

template<typename T>
template<typename U>
struct jb::fftw::allocator< T >::rebind< U >

Definition at line 28 of file allocator.hpp.

Class Members
typedef allocator< U > other

Member Typedef Documentation

◆ const_pointer

template<typename T >
typedef value_type const* jb::fftw::allocator< T >::const_pointer

Definition at line 22 of file allocator.hpp.

◆ const_void_pointer

template<typename T >
typedef void const* jb::fftw::allocator< T >::const_void_pointer

Definition at line 24 of file allocator.hpp.

◆ difference_type

template<typename T >
typedef std::ptrdiff_t jb::fftw::allocator< T >::difference_type

Definition at line 26 of file allocator.hpp.

◆ pointer

template<typename T >
typedef value_type* jb::fftw::allocator< T >::pointer

Definition at line 21 of file allocator.hpp.

◆ size_type

template<typename T >
typedef std::size_t jb::fftw::allocator< T >::size_type

Definition at line 25 of file allocator.hpp.

◆ value_type

template<typename T >
typedef T jb::fftw::allocator< T >::value_type

Definition at line 20 of file allocator.hpp.

◆ void_pointer

template<typename T >
typedef void* jb::fftw::allocator< T >::void_pointer

Definition at line 23 of file allocator.hpp.

Member Function Documentation

◆ address() [1/2]

template<typename T >
pointer jb::fftw::allocator< T >::address ( T &  object) const
inline

Definition at line 32 of file allocator.hpp.

◆ address() [2/2]

template<typename T >
const_pointer jb::fftw::allocator< T >::address ( T const &  object) const
inline

Definition at line 35 of file allocator.hpp.

◆ allocate()

template<typename T >
pointer jb::fftw::allocator< T >::allocate ( size_type  count,
const void *  = 0 
)
inline

Definition at line 48 of file allocator.hpp.

◆ construct()

template<typename T >
template<typename... Args>
void jb::fftw::allocator< T >::construct ( pointer  p,
Args &&...  args 
)
inline

Definition at line 42 of file allocator.hpp.

◆ deallocate()

template<typename T >
void jb::fftw::allocator< T >::deallocate ( pointer  p,
size_type  count 
)
inline

Definition at line 51 of file allocator.hpp.

◆ destroy()

template<typename T >
void jb::fftw::allocator< T >::destroy ( pointer  p)
inline

Definition at line 45 of file allocator.hpp.

◆ max_size()

template<typename T >
size_type jb::fftw::allocator< T >::max_size ( ) const
inline

Definition at line 38 of file allocator.hpp.

◆ operator!=()

template<typename T >
bool jb::fftw::allocator< T >::operator!= ( allocator< T > const &  rhs) const
inline

Definition at line 58 of file allocator.hpp.

◆ operator==()

template<typename T >
bool jb::fftw::allocator< T >::operator== ( allocator< T > const &  rhs) const
inline

Definition at line 55 of file allocator.hpp.


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