#include <legion.h>
Public Member Functions | |
IndexAllocator (const IndexAllocator &allocator) | |
IndexAllocator & | operator= (const IndexAllocator &allocator) |
bool | operator< (const IndexAllocator &rhs) const |
bool | operator== (const IndexAllocator &rhs) const |
ptr_t | alloc (unsigned num_elements=1) |
void | free (ptr_t ptr, unsigned num_elements=1) |
IndexSpace | get_index_space (void) const |
![]() | |
size_t | legion_buffer_size (void) |
size_t | legion_serialize (void *buffer) |
size_t | legion_deserialize (const void *buffer) |
Protected Member Functions | |
FRIEND_ALL_RUNTIME_CLASSES | IndexAllocator (IndexSpace space, IndexIterator iterator) |
Index space allocators operate on a single index space which is immutable. Separate index space allocators must be made to perform allocations on different index spaces.
ptr_t Legion::IndexAllocator::alloc | ( | unsigned | num_elements = 1 | ) |
num_elements | number of elements to allocate |
void Legion::IndexAllocator::free | ( | ptr_t | ptr, |
unsigned | num_elements = 1 |
||
) |
ptr | pointer to the first element to free |
num_elements | number of elements to be freed |
|
inline |