|
rippled
|
A collection of slab allocators of various sizes for a given type. More...
#include <SlabAllocator.h>

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. | |
| bool | deallocate (std::uint8_t *ptr) noexcept |
| Returns the memory block to the allocator. | |
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 306 of file SlabAllocator.h.
|
constexpr |
Definition at line 334 of file SlabAllocator.h.
|
delete |
|
delete |
| ripple::SlabAllocatorSet< Type >::~SlabAllocatorSet | ( | ) |
Definition at line 375 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 388 of file SlabAllocator.h.
|
noexcept |
Returns the memory block to the allocator.
| ptr | A pointer to a memory block. |
Definition at line 410 of file SlabAllocator.h.
|
private |
Definition at line 310 of file SlabAllocator.h.
|
private |
Definition at line 312 of file SlabAllocator.h.