Flow123d  DF_patch_fe_data_tables-b828b90
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
AlignedMemoryResource< Upstream > Class Template Reference

#include <arena_resource.hh>

Inheritance diagram for AlignedMemoryResource< Upstream >:
Inheritance graph
[legend]
Collaboration diagram for AlignedMemoryResource< Upstream >:
Collaboration graph
[legend]

Public Member Functions

 AlignedMemoryResource (std::pmr::monotonic_buffer_resource &upstream, size_t alignment)
 

Protected Member Functions

void * do_allocate (size_t bytes, size_t alignment) override
 
void do_deallocate (void *p, size_t bytes, size_t alignment) override
 
bool do_is_equal (const std::pmr::memory_resource &other) const noexcept override
 

Private Attributes

Upstream & upstream_
 
size_t alignment_
 

Friends

class ArenaResource< Upstream >
 

Detailed Description

template<class Upstream>
class AlignedMemoryResource< Upstream >

Definition at line 21 of file arena_resource.hh.

Constructor & Destructor Documentation

◆ AlignedMemoryResource()

template<class Upstream >
AlignedMemoryResource< Upstream >::AlignedMemoryResource ( std::pmr::monotonic_buffer_resource &  upstream,
size_t  alignment 
)
inlineexplicit

Definition at line 23 of file arena_resource.hh.

Member Function Documentation

◆ do_allocate()

template<class Upstream >
void* AlignedMemoryResource< Upstream >::do_allocate ( size_t  bytes,
size_t  alignment 
)
inlineoverrideprotected

Definition at line 27 of file arena_resource.hh.

Here is the caller graph for this function:

◆ do_deallocate()

template<class Upstream >
void AlignedMemoryResource< Upstream >::do_deallocate ( void *  p,
size_t  bytes,
size_t  alignment 
)
inlineoverrideprotected

Definition at line 38 of file arena_resource.hh.

◆ do_is_equal()

template<class Upstream >
bool AlignedMemoryResource< Upstream >::do_is_equal ( const std::pmr::memory_resource &  other) const
inlineoverrideprotectednoexcept

Definition at line 42 of file arena_resource.hh.

Friends And Related Function Documentation

◆ ArenaResource< Upstream >

template<class Upstream >
friend class ArenaResource< Upstream >
friend

Definition at line 48 of file arena_resource.hh.

Member Data Documentation

◆ alignment_

template<class Upstream >
size_t AlignedMemoryResource< Upstream >::alignment_
private

Definition at line 48 of file arena_resource.hh.

◆ upstream_

template<class Upstream >
Upstream& AlignedMemoryResource< Upstream >::upstream_
private

Definition at line 47 of file arena_resource.hh.


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