OpenSDN source code
|
#include <index_allocator.h>
Public Member Functions | |
IndexAllocator (size_t max_index) | |
size_t | AllocIndex () |
void | FreeIndex (size_t index) |
bool | NoneIndexSet () |
bool | AnyIndexSet () |
Private Attributes | |
BitSet | bitset_ |
size_t | max_index_ |
size_t | last_index_ |
Definition at line 14 of file index_allocator.h.
|
inline |
Definition at line 16 of file index_allocator.h.
size_t IndexAllocator::AllocIndex | ( | ) |
bool IndexAllocator::AnyIndexSet | ( | ) |
void IndexAllocator::FreeIndex | ( | size_t | index | ) |
bool IndexAllocator::NoneIndexSet | ( | ) |
|
private |
Definition at line 25 of file index_allocator.h.
|
private |
Definition at line 27 of file index_allocator.h.
|
private |
Definition at line 26 of file index_allocator.h.