Highly Efficient FFT for Exascale: HeFFTe v2.3
heffte::stock::complex_allocator_t< F > Class Template Reference

Allocator to use with heffte::stock::Complex types Class to properly allocate heffte::stock::Complex<F,L> types to ensure proper alignment of the type when using containers like std::vector. More...

#include <heffte_stock_allocator.h>

Classes

struct  rebind
 Defining rebind for the allocator. More...
 

Public Types

typedef F value_type
 Mandatory aliases.
 
typedef F * pointer
 
typedef const F * const_pointer
 
typedef F & reference
 
typedef const F & const_reference
 
typedef size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

pointer address (reference r)
 Get address from a reference.
 
const_pointer address (const_reference r) const
 Get address from a const reference.
 
pointer allocate (size_type n, typename std::allocator< void >::const_pointer=nullptr)
 Define allocation for complex type.
 
void deallocate (pointer p, size_type)
 Define deallocation for complex type.
 
void construct (pointer p, const_reference value)
 Copy into pointer.
 
void destroy (pointer p)
 Destroy a pointer to this type.
 
size_type max_size () const noexcept
 Define maximum size of an array of this.
 
bool operator== (const complex_allocator_t &)
 Define == operator.
 
bool operator!= (const complex_allocator_t &rhs)
 Define != operator.
 

Detailed Description

template<typename F>
class heffte::stock::complex_allocator_t< F >

Allocator to use with heffte::stock::Complex types Class to properly allocate heffte::stock::Complex<F,L> types to ensure proper alignment of the type when using containers like std::vector.


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