#include <sparsity.h>
◆ id_t
template<int N, typename T >
◆ add_reference()
template<int N, typename T >
Add an ownership reference to the sparsity map. Calling this method requires the client perform an additional call to 'destroy' which will remove the reference. The event returned by this method must be waited on before calling 'destroy' or must be passed as a precondition to 'destroy'.
- Parameters
-
| count | how many references to add |
- Returns
- the event for when references have been applied
◆ construct() [1/2]
template<int N, typename T >
Construct a sparsity map from a set of points or rectangles.
- Parameters
-
| points/rects | a vector of points/rects. |
| always_create | if true, always create a sparsity map, even if the points completely fill their bounding box if false, return NO_SPACE if the points completely fill their bounding box (i.e. id == 0) |
| disjoint | if true, the points are assumed to be disjoint |
- Returns
- a sparsity map
◆ construct() [2/2]
template<int N, typename T >
◆ destroy()
template<int N, typename T >
Destroy the sparsity map. This method is synonymous with removing an ownership reference from the sparsity map. Note that each sparsity map is given one ownership reference when it is created so the client must either call destroy or remove_reference once in order to clean up the sparsity map. The creation event for the sparsity map must have a happens-before relationship with the wait-on even of the destroy call.
- Parameters
-
| wait_on | a precondition event |
◆ exists()
template<int N, typename T >
Check if this sparsity map exists.
- Returns
- true if this sparsity map exists, false otherwise
◆ impl()
template<int N, typename T >
Lookup the public implementation object for this sparsity map.
- Returns
- the public implementation object for this sparsity map
◆ operator!=()
template<int N, typename T >
◆ operator<()
template<int N, typename T >
◆ operator==()
template<int N, typename T >
◆ remove_reference()
template<int N, typename T >
Remove an ownership reference from this sparsity map. This method is synonymous with destroying a sparsity map. Note that each sparsity map is given one ownership reference when it is created so the client must either call destroy or remove_reference once in order to clean up the sparsity map. The event returned from add_reference must have a happens-before relationship with the wait-on even of the remove_reference call.
- Parameters
-
| count | the number of references to remove |
| wait_on | a precondition event before removing the references |
◆ id
template<int N, typename T >
The documentation for this class was generated from the following files:
- /home/runner/work/realm/realm/realm-src/src/realm/indexspace.h
- /home/runner/work/realm/realm/realm-src/src/realm/sparsity.h