Class LoFFLi
Defined in File loffli.hpp
Nested Relationships
Nested Types
Class Documentation
-
class LoFFLi
Public Types
-
using Index_t = uint32_t
Public Functions
-
LoFFLi() noexcept = default
-
void init(cxx::not_null<Index_t*> freeIndicesMemory, const uint32_t capacity) noexcept
- Todo:
: why init not in ctor
- Parameters:
freeIndicesMemory – [in] pointer to a memory with the capacity calculated by requiredMemorySize()
capacity – [in] is the number of elements of the free-list; must be the same used at requiredMemorySize()
Public Static Functions
-
static inline constexpr std::size_t requiredIndexMemorySize(const uint32_t capacity) noexcept
Calculates the required memory size for a free-list
- Parameters:
capacity – [in] is the number of elements of the free-list
- Returns:
the required memory size for a free-list with the requested capacity
-
using Index_t = uint32_t