ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
fft::allocator< FloatType > Struct Template Reference

Aligned allocator for FFT data. More...

#include <vector.hpp>

Public Types

typedef FloatType value_type

Public Member Functions

 allocator () noexcept=default
template<class U>
 allocator (allocator< U > const &)
template<class U>
bool operator== (allocator< U > const &) const
template<class U>
bool operator!= (allocator< U > const &) const
FloatType * allocate (std::size_t n) const
void deallocate (FloatType *p, std::size_t) const noexcept

Detailed Description

template<class FloatType>
struct fft::allocator< FloatType >

Aligned allocator for FFT data.

Definition at line 35 of file vector.hpp.

Member Typedef Documentation

◆ value_type

template<class FloatType>
typedef FloatType fft::allocator< FloatType >::value_type

Definition at line 39 of file vector.hpp.

Constructor & Destructor Documentation

◆ allocator() [1/2]

template<class FloatType>
fft::allocator< FloatType >::allocator ( )
defaultnoexcept

Referenced by allocator(), operator!=(), and operator==().

◆ allocator() [2/2]

template<class FloatType>
template<class U>
fft::allocator< FloatType >::allocator ( allocator< U > const & )
inlineexplicit

Definition at line 41 of file vector.hpp.

References allocator().

Member Function Documentation

◆ allocate()

template<class FloatType>
FloatType * fft::allocator< FloatType >::allocate ( std::size_t n) const

Definition at line 795 of file fft.cpp.

References fft::fftw< FloatType >::malloc.

◆ deallocate()

template<class FloatType>
void fft::allocator< FloatType >::deallocate ( FloatType * p,
std::size_t  ) const
noexcept

Definition at line 810 of file fft.cpp.

References fft::fftw< FloatType >::free.

◆ operator!=()

template<class FloatType>
template<class U>
bool fft::allocator< FloatType >::operator!= ( allocator< U > const & ) const
inline

Definition at line 45 of file vector.hpp.

References allocator().

◆ operator==()

template<class FloatType>
template<class U>
bool fft::allocator< FloatType >::operator== ( allocator< U > const & ) const
inline

Definition at line 42 of file vector.hpp.

References allocator().


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