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 33 of file vector.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 37 of file vector.hpp.

Constructor & Destructor Documentation

◆ allocator() [1/2]

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

◆ allocator() [2/2]

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

Definition at line 39 of file vector.hpp.

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 43 of file vector.hpp.

◆ operator==()

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

Definition at line 40 of file vector.hpp.


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