Intel HEXL
Intel Homomorphic Encryption Acceleration Library, accelerating the modular arithmetic operations used in homomorphic encryption.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
intel::hexl::NTT::AllocatorAdapter< Adaptee, Args > Struct Template Reference

Helper class for custom memory allocation. More...

#include <ntt.hpp>

Inheritance diagram for intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >:
Inheritance graph
[legend]
Collaboration diagram for intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >:
Collaboration graph
[legend]

Public Member Functions

 AllocatorAdapter (Adaptee &&_a, Args &&... args)
 
 AllocatorAdapter (const Adaptee &_a, Args &... args)
 
void * allocate_impl (size_t bytes_count)
 
void deallocate_impl (void *p, size_t n)
 
- Public Member Functions inherited from intel::hexl::AllocatorInterface< AllocatorAdapter< Adaptee, Args... > >
void * allocate (size_t bytes_count) override
 Override interface and delegate implementation to AllocatorImpl. More...
 
void deallocate (void *p, size_t n) override
 Override interface and delegate implementation to AllocatorImpl. More...
 
- Public Member Functions inherited from intel::hexl::AllocatorBase
virtual ~AllocatorBase () noexcept
 

Detailed Description

template<class Adaptee, class... Args>
struct intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >

Helper class for custom memory allocation.

Constructor & Destructor Documentation

◆ AllocatorAdapter() [1/2]

template<class Adaptee , class... Args>
intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >::AllocatorAdapter ( Adaptee &&  _a,
Args &&...  args 
)
explicit

◆ AllocatorAdapter() [2/2]

template<class Adaptee , class... Args>
intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >::AllocatorAdapter ( const Adaptee &  _a,
Args &...  args 
)

Member Function Documentation

◆ allocate_impl()

template<class Adaptee , class... Args>
void* intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >::allocate_impl ( size_t  bytes_count)

◆ deallocate_impl()

template<class Adaptee , class... Args>
void intel::hexl::NTT::AllocatorAdapter< Adaptee, Args >::deallocate_impl ( void *  p,
size_t  n 
)

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