rippled
|
A collection of slab allocators of various sizes for a given type. More...
Classes | |
class | SlabConfig |
Public Member Functions | |
constexpr | SlabAllocatorSet (std::vector< SlabConfig > cfg) |
SlabAllocatorSet (SlabAllocatorSet const &other)=delete | |
SlabAllocatorSet & | operator= (SlabAllocatorSet const &other)=delete |
SlabAllocatorSet (SlabAllocatorSet &&other)=delete | |
SlabAllocatorSet & | operator= (SlabAllocatorSet &&other)=delete |
~SlabAllocatorSet () | |
std::uint8_t * | allocate (std::size_t extra) noexcept |
Returns a suitably aligned pointer, if one is available. More... | |
bool | deallocate (std::uint8_t *ptr) noexcept |
Returns the memory block to the allocator. More... | |
Private Attributes | |
boost::container::static_vector< SlabAllocator< Type >, 64 > | allocators_ |
std::size_t | maxSize_ = 0 |
A collection of slab allocators of various sizes for a given type.
Definition at line 314 of file SlabAllocator.h.
|
constexpr |
Definition at line 342 of file SlabAllocator.h.
|
delete |
|
delete |
ripple::SlabAllocatorSet< Type >::~SlabAllocatorSet | ( | ) |
Definition at line 383 of file SlabAllocator.h.
|
delete |
|
delete |
|
noexcept |
Returns a suitably aligned pointer, if one is available.
extra | The number of extra bytes, above and beyond the size of the object, that should be returned by the allocator. |
Definition at line 396 of file SlabAllocator.h.
|
noexcept |
Returns the memory block to the allocator.
ptr | A pointer to a memory block. |
Definition at line 418 of file SlabAllocator.h.
|
private |
Definition at line 318 of file SlabAllocator.h.
|
private |
Definition at line 320 of file SlabAllocator.h.