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::AllocatorBase Struct Referenceabstract

Base class for custom memory allocator. More...

#include <allocator.hpp>

Inheritance diagram for intel::hexl::AllocatorBase:
Inheritance graph
[legend]

Public Member Functions

virtual ~AllocatorBase () noexcept
 
virtual void * allocate (size_t bytes_count)=0
 Allocates byte_count bytes of memory. More...
 
virtual void deallocate (void *p, size_t n)=0
 Deallocate memory. More...
 

Detailed Description

Base class for custom memory allocator.

Constructor & Destructor Documentation

◆ ~AllocatorBase()

virtual intel::hexl::AllocatorBase::~AllocatorBase ( )
inlinevirtualnoexcept

Member Function Documentation

◆ allocate()

virtual void* intel::hexl::AllocatorBase::allocate ( size_t  bytes_count)
pure virtual

Allocates byte_count bytes of memory.

Parameters
[in]bytes_countNumber of bytes to allocate
Returns
A pointer to the allocated memory

Implemented in intel::hexl::AllocatorInterface< AllocatorImpl >, intel::hexl::AllocatorInterface< AllocatorAdapter< Adaptee, Args... > >, and intel::hexl::MallocStrategy.

◆ deallocate()

virtual void intel::hexl::AllocatorBase::deallocate ( void *  p,
size_t  n 
)
pure virtual

Deallocate memory.

Parameters
[in]pPointer to memory to deallocate
[in]nNumber of bytes to deallocate

Implemented in intel::hexl::AllocatorInterface< AllocatorImpl >, intel::hexl::AllocatorInterface< AllocatorAdapter< Adaptee, Args... > >, and intel::hexl::MallocStrategy.


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