Audio Processing Framework (APF) version 0.5.0
Public Types | Public Member Functions | List of all members
apf::fftw_allocator< T > Struct Template Reference

#include <apf/fftwtools.h>

Public Types

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

Public Member Functions

pointer allocate (size_type n, const void *hint=nullptr)
 
void deallocate (pointer p, size_type n)
 
void construct (pointer p, const T &t)
 
void destroy (pointer p)
 
size_type max_size () const
 
 fftw_allocator (const fftw_allocator &)
 
template<typename U >
 fftw_allocator (const fftw_allocator< U > &)
 
pointer address (reference value)
 
const_pointer address (const_reference value)
 
template<typename U >
bool operator== (const fftw_allocator< U > &)
 
template<typename U >
bool operator!= (const fftw_allocator< U > &)
 

Detailed Description

template<typename T>
struct apf::fftw_allocator< T >
Note
: This only works for containers with contiguous memory (e.g. vector)!

Definition at line 85 of file fftwtools.h.

Member Typedef Documentation

◆ size_type

template<typename T >
using apf::fftw_allocator< T >::size_type = size_t

Definition at line 87 of file fftwtools.h.

◆ difference_type

template<typename T >
using apf::fftw_allocator< T >::difference_type = ptrdiff_t

Definition at line 88 of file fftwtools.h.

◆ pointer

template<typename T >
using apf::fftw_allocator< T >::pointer = T*

Definition at line 89 of file fftwtools.h.

◆ const_pointer

template<typename T >
using apf::fftw_allocator< T >::const_pointer = const T*

Definition at line 90 of file fftwtools.h.

◆ reference

template<typename T >
using apf::fftw_allocator< T >::reference = T&

Definition at line 91 of file fftwtools.h.

◆ const_reference

template<typename T >
using apf::fftw_allocator< T >::const_reference = const T&

Definition at line 92 of file fftwtools.h.

◆ value_type

template<typename T >
using apf::fftw_allocator< T >::value_type = T

Definition at line 93 of file fftwtools.h.

Constructor & Destructor Documentation

◆ fftw_allocator() [1/3]

template<typename T >
apf::fftw_allocator< T >::fftw_allocator ( )
inline

Definition at line 120 of file fftwtools.h.

◆ fftw_allocator() [2/3]

template<typename T >
apf::fftw_allocator< T >::fftw_allocator ( const fftw_allocator< T > &  )
inline

Definition at line 121 of file fftwtools.h.

◆ fftw_allocator() [3/3]

template<typename T >
template<typename U >
apf::fftw_allocator< T >::fftw_allocator ( const fftw_allocator< U > &  )
inline

Definition at line 122 of file fftwtools.h.

Member Function Documentation

◆ allocate()

template<typename T >
pointer apf::fftw_allocator< T >::allocate ( size_type  n,
const void *  hint = nullptr 
)
inline

Definition at line 95 of file fftwtools.h.

◆ deallocate()

template<typename T >
void apf::fftw_allocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

Definition at line 101 of file fftwtools.h.

◆ construct()

template<typename T >
void apf::fftw_allocator< T >::construct ( pointer  p,
const T &  t 
)
inline

Definition at line 107 of file fftwtools.h.

◆ destroy()

template<typename T >
void apf::fftw_allocator< T >::destroy ( pointer  p)
inline

Definition at line 108 of file fftwtools.h.

◆ max_size()

template<typename T >
size_type apf::fftw_allocator< T >::max_size ( ) const
inline

Definition at line 110 of file fftwtools.h.

◆ address() [1/2]

template<typename T >
pointer apf::fftw_allocator< T >::address ( reference  value)
inline

Definition at line 124 of file fftwtools.h.

◆ address() [2/2]

template<typename T >
const_pointer apf::fftw_allocator< T >::address ( const_reference  value)
inline

Definition at line 125 of file fftwtools.h.

◆ operator==()

template<typename T >
template<typename U >
bool apf::fftw_allocator< T >::operator== ( const fftw_allocator< U > &  )
inline

Definition at line 128 of file fftwtools.h.

◆ operator!=()

template<typename T >
template<typename U >
bool apf::fftw_allocator< T >::operator!= ( const fftw_allocator< U > &  )
inline

Definition at line 131 of file fftwtools.h.


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