![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "lib/several-builder.hpp"
Policy Mix-In used to adapt to the ElementFactory and Allocator.
| I | Interface type (also used in the lib::Several<I> front-end |
| E | a common element type to use by default |
| ALO | custom allocator template |
Definition at line 299 of file several-builder.hpp.
Public Types | |
| using | Fac = ElementFactory< I, ALO > |
| using | Bucket = ArrayBucket< I > |
Static Public Attributes | |
| static size_t constexpr | ALLOC_LIMIT = size_t(-1) / sizeof(E) |
| by default assume that memory is practically unlimited... | |
Public Member Functions | |
| bool | canExpand (Bucket *, size_t) |
| Extension point: able to adjust dynamically to the requested size? | |
| Bucket * | realloc (Bucket *data, size_t cnt, size_t spread) |
| void | moveElem (size_t idx, Bucket *src, Bucket *tar) |
Public Member Functions inherited from ElementFactory< I, ALO > | |
| ElementFactory (Allo allo=Allo{}) | |
| template<typename X > | |
| ElementFactory (ElementFactory< X, ALO > &relatedFac) | |
| allow cross-initialisation when using same kind of base allocator | |
| Bucket * | create (size_t cnt, size_t spread, size_t alignment=alignof(I)) |
| template<class E , typename... ARGS> | |
| E & | createAt (Bucket *bucket, size_t idx, ARGS &&...args) |
| template<class E > | |
| void | destroy (ArrayBucket< I > *bucket) |
| using Fac = ElementFactory<I, ALO> |
Definition at line 302 of file several-builder.hpp.
| using Bucket = ArrayBucket<I> |
Definition at line 303 of file several-builder.hpp.
|
inline |
Extension point: able to adjust dynamically to the requested size?
Definition at line 311 of file several-builder.hpp.
|
inline |
Definition at line 314 of file several-builder.hpp.
References ElementFactory< I, ALO >::create(), and AllocationPolicy< I, E, ALO >::moveElem().
Here is the call graph for this function:
|
inline |
Definition at line 331 of file several-builder.hpp.
Referenced by AllocationPolicy< I, E, ALO >::realloc().
Here is the caller graph for this function:
|
staticconstexpr |
by default assume that memory is practically unlimited...
Definition at line 308 of file several-builder.hpp.
Inheritance diagram for AllocationPolicy< I, E, ALO >:
Collaboration diagram for AllocationPolicy< I, E, ALO >: