![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "lib/allocator-handle.hpp"
< Concepts and Adaptors for custom memory management
TICKET #1366 : define Allocator Concepts here TODO the following Concepts can be expected here (with C++20)
std::allocator | ALO | a std::allocator instance or anything compliant to Allocator |
Definition at line 87 of file allocator-handle.hpp.
Public Member Functions | |
| StdFactory (Allo allo=Allo{}) | |
| Create an instance of the adapter factory, forwarding to the embedded standard conforming allocator for object creation and destruction and memory management. | |
| template<class XALO > | |
| bool constexpr | operator== (StdFactory< XALO > const &o) const |
| template<class XALO > | |
| bool constexpr | operator!= (StdFactory< XALO > const &o) const |
| template<class TY , typename... ARGS> | |
| TY * | create (ARGS &&...args) |
| create new element using the embedded allocator | |
| template<class TY > | |
| void | dispose (TY *elm) |
| destroy the given element and discard the associated memory | |
Private Types | |
| using | Allo = ALO |
| using | AlloT = std::allocator_traits< Allo > |
| using | BaseType = Allo::value_type |
Private Member Functions | |
| Allo & | baseAllocator () |
| template<typename X > | |
| auto | adaptAllocator () |
| template<class ALOT , typename... ARGS> | |
| ALOT::pointer | construct (ALOT::allocator_type &allo, ARGS &&...args) |
| template<class ALOT > | |
| void | destroy (ALOT::allocator_type &allo, ALOT::pointer elm) |
|
inline |
Create an instance of the adapter factory, forwarding to the embedded standard conforming allocator for object creation and destruction and memory management.
| allo | (optional) instance of the C++ standard allocator used for delegation, will be default constructed if omitted. |
Definition at line 142 of file allocator-handle.hpp.
|
private |
Definition at line 90 of file allocator-handle.hpp.
Definition at line 91 of file allocator-handle.hpp.
|
private |
Definition at line 92 of file allocator-handle.hpp.
|
inlineprivate |
Definition at line 94 of file allocator-handle.hpp.
Referenced by StdFactory< ALO >::adaptAllocator(), StdFactory< ALO >::create(), StdFactory< ALO >::dispose(), and StdFactory< ALO >::operator==().
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 98 of file allocator-handle.hpp.
References StdFactory< ALO >::baseAllocator().
Here is the call graph for this function:
|
inlineprivate |
Definition at line 109 of file allocator-handle.hpp.
|
inlineprivate |
Definition at line 123 of file allocator-handle.hpp.
|
inlineconstexpr |
Definition at line 147 of file allocator-handle.hpp.
References StdFactory< ALO >::baseAllocator().
Here is the call graph for this function:
|
inlineconstexpr |
Definition at line 152 of file allocator-handle.hpp.
|
inline |
create new element using the embedded allocator
Definition at line 162 of file allocator-handle.hpp.
References StdFactory< ALO >::baseAllocator().
Here is the call graph for this function:
|
inline |
destroy the given element and discard the associated memory
Definition at line 179 of file allocator-handle.hpp.
References StdFactory< ALO >::baseAllocator().
Here is the call graph for this function:
Inheritance diagram for StdFactory< ALO >:
Collaboration diagram for StdFactory< ALO >: