![]() |
Realm
A distributed, event-based tasking library
|
#include <inst_layout.h>
Public Member Functions | |
| GenericAccessor (void) | |
| GenericAccessor (RegionInstance inst, FieldID field_id, size_t subfield_offset=0) | |
| GenericAccessor (RegionInstance inst, FieldID field_id, const Rect< N, T > &subrect, size_t subfield_offset=0) | |
| ~GenericAccessor (void) | |
| FT | read (const Point< N, T > &p) |
| void | write (const Point< N, T > &p, FT newval) |
| AccessorRefHelper< FT > | operator[] (const Point< N, T > &p) |
| size_t | get_offset (const Point< N, T > &p) |
Static Public Member Functions | |
| static bool | is_compatible (RegionInstance inst, size_t field_offset) |
| static bool | is_compatible (RegionInstance inst, size_t field_offset, const Rect< N, T > &subrect) |
| template<typename INST > | |
| static bool | is_compatible (const INST &instance, unsigned field_id) |
| template<typename INST > | |
| static bool | is_compatible (const INST &instance, unsigned field_id, const Rect< N, T > &subrect) |
Public Attributes | |
| RegionInstance | inst |
| const InstancePieceList< N, T > * | piece_list |
| size_t | rel_offset |
| const InstanceLayoutPiece< N, T > * | prev_piece |
A generic accessor that works for any instance layout. GenericAccessors. While useful, these accessors are generally more expensive and should be used with caution. A read/write operation via this accessor could potentially result in a network transaction, assuming the data is stored on a remote node
| Realm::GenericAccessor< FT, N, T >::GenericAccessor | ( | void | ) |
| Realm::GenericAccessor< FT, N, T >::GenericAccessor | ( | RegionInstance | inst, |
| FieldID | field_id, | ||
| size_t | subfield_offset = 0 |
||
| ) |
Construct a GenericAccessor for the specified instance and field. Implicitly tries to cover the entire instance's domain.
| inst | RegionInstance to construct accessor for. |
| field_id | FieldID of field to construct accessor for. |
| subfield_offset | Offset of subfield to construct accessor for. |
| Realm::GenericAccessor< FT, N, T >::GenericAccessor | ( | RegionInstance | inst, |
| FieldID | field_id, | ||
| const Rect< N, T > & | subrect, | ||
| size_t | subfield_offset = 0 |
||
| ) |
Construct a GenericAccessor for the specified instance and field. Limits the domain to the specified subrectangle.
| inst | RegionInstance to construct accessor for. |
| field_id | FieldID of field to construct accessor for. |
| subrect | Subrectangle to limit domain to. |
| subfield_offset | Offset of subfield to construct accessor for. |
| Realm::GenericAccessor< FT, N, T >::~GenericAccessor | ( | void | ) |
| size_t Realm::GenericAccessor< FT, N, T >::get_offset | ( | const Point< N, T > & | p | ) |
|
static |
|
static |
|
static |
|
static |
| AccessorRefHelper< FT > Realm::GenericAccessor< FT, N, T >::operator[] | ( | const Point< N, T > & | p | ) |
Return a reference that can be used to read or write a single element.
| p | Point to read/write. |
| FT Realm::GenericAccessor< FT, N, T >::read | ( | const Point< N, T > & | p | ) |
| void Realm::GenericAccessor< FT, N, T >::write | ( | const Point< N, T > & | p, |
| FT | newval | ||
| ) |
| RegionInstance Realm::GenericAccessor< FT, N, T >::inst |
| const InstancePieceList<N, T>* Realm::GenericAccessor< FT, N, T >::piece_list |
| const InstanceLayoutPiece<N, T>* Realm::GenericAccessor< FT, N, T >::prev_piece |
| size_t Realm::GenericAccessor< FT, N, T >::rel_offset |