OpenSDN source code
|
#include <label_block.h>
Public Member Functions | |
LabelBlock (uint32_t first, uint32_t last) | |
LabelBlock (LabelBlockManager *block_manager, uint32_t first, uint32_t last) | |
~LabelBlock () | |
uint32_t | AllocateLabel () |
void | ReleaseLabel (uint32_t value) |
std::string | ToString () const |
uint32_t | first () |
uint32_t | last () |
LabelBlockManagerPtr | block_manager () |
Private Attributes | |
LabelBlockManagerPtr | block_manager_ |
uint32_t | first_ |
uint32_t | last_ |
size_t | prev_pos_ |
tbb::atomic< int > | refcount_ |
tbb::mutex | mutex_ |
BitSet | used_bitset_ |
Friends | |
class | LabelBlockManager |
class | LabelBlockTest |
void | intrusive_ptr_add_ref (LabelBlock *block) |
void | intrusive_ptr_release (LabelBlock *block) |
Definition at line 79 of file label_block.h.
LabelBlock::LabelBlock | ( | uint32_t | first, |
uint32_t | last | ||
) |
Definition at line 54 of file label_block.cc.
LabelBlock::LabelBlock | ( | LabelBlockManager * | block_manager, |
uint32_t | first, | ||
uint32_t | last | ||
) |
Definition at line 62 of file label_block.cc.
LabelBlock::~LabelBlock | ( | ) |
uint32_t LabelBlock::AllocateLabel | ( | ) |
|
inline |
Definition at line 90 of file label_block.h.
|
inline |
Definition at line 88 of file label_block.h.
|
inline |
Definition at line 89 of file label_block.h.
void LabelBlock::ReleaseLabel | ( | uint32_t | value | ) |
string LabelBlock::ToString | ( | ) | const |
Definition at line 106 of file label_block.cc.
|
friend |
Definition at line 109 of file label_block.h.
|
friend |
Definition at line 112 of file label_block.h.
|
friend |
Definition at line 93 of file label_block.h.
|
friend |
Definition at line 94 of file label_block.h.
|
private |
Definition at line 98 of file label_block.h.
|
private |
Definition at line 99 of file label_block.h.
|
private |
Definition at line 99 of file label_block.h.
|
private |
Definition at line 105 of file label_block.h.
|
private |
Definition at line 100 of file label_block.h.
|
private |
Definition at line 101 of file label_block.h.
|
private |
Definition at line 106 of file label_block.h.