Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
BackingMemory< Fr > Struct Template Reference

#include <backing_memory.hpp>

Classes

struct  FileBackedData
 

Public Member Functions

 BackingMemory ()=default
 
 BackingMemory (const BackingMemory &)=default
 
BackingMemoryoperator= (const BackingMemory &)=default
 
 BackingMemory (BackingMemory &&other) noexcept
 
BackingMemoryoperator= (BackingMemory &&other) noexcept
 
 ~BackingMemory ()=default
 

Static Public Member Functions

static BackingMemory allocate (size_t size)
 

Public Attributes

Frraw_data = nullptr
 
std::shared_ptr< FileBackedDatafile_backed
 
std::shared_ptr< Fr[]> aligned_memory
 

Static Private Member Functions

static void allocate_aligned (BackingMemory &memory, size_t size)
 
static bool try_allocate_file_backed (BackingMemory &memory, size_t size)
 

Detailed Description

template<typename Fr>
struct BackingMemory< Fr >

Definition at line 33 of file backing_memory.hpp.

Constructor & Destructor Documentation

◆ BackingMemory() [1/3]

template<typename Fr >
BackingMemory< Fr >::BackingMemory ( )
default

◆ BackingMemory() [2/3]

template<typename Fr >
BackingMemory< Fr >::BackingMemory ( const BackingMemory< Fr > &  )
default

◆ BackingMemory() [3/3]

template<typename Fr >
BackingMemory< Fr >::BackingMemory ( BackingMemory< Fr > &&  other)
inlinenoexcept

Definition at line 69 of file backing_memory.hpp.

◆ ~BackingMemory()

template<typename Fr >
BackingMemory< Fr >::~BackingMemory ( )
default

Member Function Documentation

◆ allocate()

template<typename Fr >
static BackingMemory BackingMemory< Fr >::allocate ( size_t  size)
inlinestatic

Definition at line 93 of file backing_memory.hpp.

◆ allocate_aligned()

template<typename Fr >
static void BackingMemory< Fr >::allocate_aligned ( BackingMemory< Fr > &  memory,
size_t  size 
)
inlinestaticprivate

Definition at line 110 of file backing_memory.hpp.

◆ operator=() [1/2]

template<typename Fr >
BackingMemory & BackingMemory< Fr >::operator= ( BackingMemory< Fr > &&  other)
inlinenoexcept

Definition at line 79 of file backing_memory.hpp.

◆ operator=() [2/2]

template<typename Fr >
BackingMemory & BackingMemory< Fr >::operator= ( const BackingMemory< Fr > &  )
default

◆ try_allocate_file_backed()

template<typename Fr >
static bool BackingMemory< Fr >::try_allocate_file_backed ( BackingMemory< Fr > &  memory,
size_t  size 
)
inlinestaticprivate

Definition at line 118 of file backing_memory.hpp.

Member Data Documentation

◆ aligned_memory

template<typename Fr >
std::shared_ptr<Fr[]> BackingMemory< Fr >::aligned_memory

Definition at line 62 of file backing_memory.hpp.

◆ file_backed

template<typename Fr >
std::shared_ptr<FileBackedData> BackingMemory< Fr >::file_backed

Definition at line 59 of file backing_memory.hpp.

◆ raw_data

template<typename Fr >
Fr* BackingMemory< Fr >::raw_data = nullptr

Definition at line 35 of file backing_memory.hpp.


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