Legion Runtime
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Public Member Functions | Protected Member Functions | List of all members
Legion::IndexAllocator Class Reference

#include <legion.h>

Inheritance diagram for Legion::IndexAllocator:
Legion::Unserializable< IndexAllocator >

Public Member Functions

 IndexAllocator (const IndexAllocator &allocator)
 
IndexAllocatoroperator= (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
 
- Public Member Functions inherited from Legion::Unserializable< IndexAllocator >
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)
 

Detailed Description

Deprecated:
Index allocators provide objects for doing allocation on index spaces. They must be explicitly created by the runtime so that they can be linked back to the runtime. Index allocators can be passed by value to functions and stored in data structures, but should not escape the enclosing context in which they were created.

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.

See Also
Runtime

Member Function Documentation

ptr_t Legion::IndexAllocator::alloc ( unsigned  num_elements = 1)
Deprecated:
Parameters
num_elementsnumber of elements to allocate
Returns
pointer to the first element in the allocated block
void Legion::IndexAllocator::free ( ptr_t  ptr,
unsigned  num_elements = 1 
)
Deprecated:
Parameters
ptrpointer to the first element to free
num_elementsnumber of elements to be freed
IndexSpace Legion::IndexAllocator::get_index_space ( void  ) const
inline
Deprecated:
Returns
the index space associated with this allocator

The documentation for this class was generated from the following file: