Legion Runtime
|
#include <legion.h>
Public Member Functions | |
ArgumentMap (const FutureMap &rhs) | |
ArgumentMap (const ArgumentMap &rhs) | |
ArgumentMap (ArgumentMap &&rhs) noexcept | |
ArgumentMap & | operator= (const FutureMap &rhs) |
ArgumentMap & | operator= (const ArgumentMap &rhs) |
ArgumentMap & | operator= (ArgumentMap &&rhs) noexcept |
bool | operator== (const ArgumentMap &rhs) const |
bool | operator< (const ArgumentMap &rhs) const |
bool | exists (void) const |
bool | has_point (const DomainPoint &point) |
void | set_point (const DomainPoint &point, const UntypedBuffer &arg, bool replace=true) |
void | set_point (const DomainPoint &point, const Future &f, bool replace=true) |
bool | remove_point (const DomainPoint &point) |
UntypedBuffer | get_point (const DomainPoint &point) const |
template<typename PT , unsigned DIM> | |
void | set_point_arg (const PT point[DIM], const UntypedBuffer &arg, bool replace=false) |
template<typename PT , unsigned DIM> | |
bool | remove_point (const PT point[DIM]) |
![]() | |
size_t | legion_buffer_size (void) |
size_t | legion_serialize (void *buffer) |
size_t | legion_deserialize (const void *buffer) |
Argument maps provide a data structure for storing the task arguments that are to be associated with different points in an index space launch. Argument maps are light-weight handle to the actual implementation that uses a versioning system to make it efficient to re-use argument maps over many task calls, especially if there are very few changes applied to the map between task call launches.
UntypedBuffer Legion::ArgumentMap::get_point | ( | const DomainPoint & | point | ) | const |
Get the untyped buffer for a point if it exists, otherwise return an empty untyped buffer.
point | the point to retrieve |
bool Legion::ArgumentMap::has_point | ( | const DomainPoint & | point | ) |
Check to see if a point has an argument set
point | the point to check |
bool Legion::ArgumentMap::remove_point | ( | const DomainPoint & | point | ) |
Remove a point from the argument map
point | the point to be removed |
|
inline |
An older method for removing a point argument from an argument map.
point | the point to remove from the map |
void Legion::ArgumentMap::set_point | ( | const DomainPoint & | point, |
const Future & | f, | ||
bool | replace = true |
||
) |
Associate a future with a domain point
point | the point to associate with the untyped buffer |
future | the future argument |
replace | specify whether to overwrite an existing value |
void Legion::ArgumentMap::set_point | ( | const DomainPoint & | point, |
const UntypedBuffer & | arg, | ||
bool | replace = true |
||
) |
Associate an argument with a domain point
point | the point to associate with the untyped buffer |
arg | the untyped buffer |
replace | specify whether to overwrite an existing value |
|
inline |
An older method for setting the point argument in an argument map.
point | the point to associate the untyped buffer |
arg | the argument |
replace | specify if the value should overwrite the existing value if it already exists |