Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <AllocatorHolder.h>
Public Types | |
using | allocator_type = ALLOC |
Public Member Functions | |
AllocatorHolder () | |
AllocatorHolder (const allocator_type &allocator) | |
AllocatorHolder (allocator_type &&allocator) | |
allocator_type | get_allocator () const |
~AllocatorHolder ()=default | |
AllocatorHolder (const AllocatorHolder &other)=default | |
AllocatorHolder & | operator= (const AllocatorHolder &other)=default |
AllocatorHolder (AllocatorHolder &&other)=default | |
AllocatorHolder & | operator= (AllocatorHolder &&other)=default |
Protected Member Functions | |
void | set_allocator (const allocator_type &allocator) |
void | set_allocator (allocator_type &&allocator) |
allocator_type & | get_allocator_ref () |
const allocator_type & | get_allocator_ref () const |
Base class for allocator-holding classes, so that the empty base class optimization may happen.
Definition at line 14 of file AllocatorHolder.h.
using zserio::AllocatorHolder< ALLOC >::allocator_type = ALLOC |
Definition at line 17 of file AllocatorHolder.h.
|
inline |
Empty constructor.
Definition at line 22 of file AllocatorHolder.h.
|
inlineexplicit |
Constructor from given allocator.
allocator | Allocator to be stored. |
Definition at line 31 of file AllocatorHolder.h.
|
inlineexplicit |
Constructor from given allocator.
allocator | Allocator to be stored. |
Definition at line 40 of file AllocatorHolder.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inline |
Allocator getter.
Definition at line 64 of file AllocatorHolder.h.
|
inlineprotected |
Allocator getter.
Definition at line 95 of file AllocatorHolder.h.
|
inlineprotected |
Allocator getter.
Definition at line 105 of file AllocatorHolder.h.
|
default |
Method generated by default.
|
default |
Method generated by default.
|
inlineprotected |
Allocator setter.
allocator | Allocator to be move-assigned to the stored allocator. |
Definition at line 85 of file AllocatorHolder.h.
|
inlineprotected |
Allocator setter.
allocator | Allocator to be copy-assigned to the stored allocator. |
Definition at line 75 of file AllocatorHolder.h.