![]() |
Realm
A distributed, event-based tasking library
|
#include <dynamic_table.h>
Public Types | |
| typedef ALLOCATOR::IT | IT |
| typedef ALLOCATOR::ET | ET |
| typedef ALLOCATOR::LT | LT |
| typedef DynamicTableNodeBase< LT, IT > | NodeBase |
| using | Constructor = typename ALLOCATOR::Constructor |
Public Member Functions | |
| DynamicTable (void) | |
| DynamicTable (Constructor elem_ctor) | |
| ~DynamicTable (void) | |
| size_t | max_entries (void) const |
| bool | has_entry (IT index) const |
| ET * | lookup_entry (IT index, int owner, ET **free_list_head=0, ET **free_list_tail=0) |
| void | set_constructor (Constructor &_elem_ctor) |
Protected Member Functions | |
| NodeBase * | new_tree_node (int level, IT first_index, IT last_index, int owner, ET **free_list_head, ET **free_list_tail) |
| void | prepend_alloced_node (NodeBase *new_node) |
Static Protected Member Functions | |
| static intptr_t | encode_root_and_level (NodeBase *root, int level) |
| static NodeBase * | extract_root (intptr_t rlval) |
| static int | extract_level (intptr_t rlval) |
Protected Attributes | |
| LT | lock |
| atomic< intptr_t > | root_and_level {0} |
| atomic< NodeBase * > | first_alloced_node {nullptr} |
| Constructor | elem_ctor |
| using Realm::DynamicTable< ALLOCATOR >::Constructor = typename ALLOCATOR::Constructor |
| typedef ALLOCATOR::ET Realm::DynamicTable< ALLOCATOR >::ET |
| typedef ALLOCATOR::IT Realm::DynamicTable< ALLOCATOR >::IT |
| typedef ALLOCATOR::LT Realm::DynamicTable< ALLOCATOR >::LT |
| typedef DynamicTableNodeBase<LT, IT> Realm::DynamicTable< ALLOCATOR >::NodeBase |
| Realm::DynamicTable< ALLOCATOR >::DynamicTable | ( | void | ) |
| Realm::DynamicTable< ALLOCATOR >::DynamicTable | ( | Constructor | elem_ctor | ) |
| Realm::DynamicTable< ALLOCATOR >::~DynamicTable | ( | void | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
| bool Realm::DynamicTable< ALLOCATOR >::has_entry | ( | IT | index | ) | const |
| ET * Realm::DynamicTable< ALLOCATOR >::lookup_entry | ( | IT | index, |
| int | owner, | ||
| ET ** | free_list_head = 0, |
||
| ET ** | free_list_tail = 0 |
||
| ) |
| size_t Realm::DynamicTable< ALLOCATOR >::max_entries | ( | void | ) | const |
|
protected |
|
protected |
| void Realm::DynamicTable< ALLOCATOR >::set_constructor | ( | Constructor & | _elem_ctor | ) |
|
protected |
|
protected |
|
protected |
|
protected |