DASH
0.3.0
|
Mangages the memory for all halo regions provided by the given HaloBlock. More...
#include <HaloMemory.h>
Public Member Functions | |
HaloMemory (const HaloBlockT &haloblock) | |
Constructor. More... | |
iterator | first_element_at (region_index_t index) |
Iterator to the first halo element for the given region index. More... | |
MemRange_t | range_at (region_index_t index) |
Returns the range of all halo elements for the given region index. More... | |
iterator | begin () |
Returns an iterator to the first halo element. More... | |
const_iterator | begin () const |
Returns a const iterator to the first halo element. More... | |
iterator | end () |
Returns an iterator to the end of the halo elements. More... | |
const_iterator | end () const |
Returns a const iterator to the end of the halo elements. More... | |
const HaloBuffer_t & | buffer () const |
Container storing all halo elements. More... | |
bool | to_halo_mem_coords_check (const region_index_t region_index, ElementCoords_t &coords) const |
Converts coordinates to halo memory coordinates for a given region index and returns true if the coordinates are valid and false if not. More... | |
void | to_halo_mem_coords (const region_index_t region_index, ElementCoords_t &coords) const |
Converts coordinates to halo memory coordinates for a given region index. More... | |
pattern_size_t | offset (const region_index_t region_index, const ElementCoords_t &coords) const |
Mangages the memory for all halo regions provided by the given HaloBlock.
Definition at line 20 of file HaloMemory.h.
|
inline |
Constructor.
Definition at line 47 of file HaloMemory.h.
|
inline |
Returns an iterator to the first halo element.
Definition at line 90 of file HaloMemory.h.
|
inline |
Returns a const iterator to the first halo element.
Definition at line 95 of file HaloMemory.h.
|
inline |
Container storing all halo elements.
Definition at line 112 of file HaloMemory.h.
|
inline |
Returns an iterator to the end of the halo elements.
Definition at line 100 of file HaloMemory.h.
|
inline |
Returns a const iterator to the end of the halo elements.
Definition at line 105 of file HaloMemory.h.
|
inline |
Iterator to the first halo element for the given region index.
index | halo region index |
Definition at line 63 of file HaloMemory.h.
|
inline |
Returns the range of all halo elements for the given region index.
index | halo region index |
Definition at line 73 of file HaloMemory.h.
Referenced by dash::halo::HaloMatrixWrapper< MatrixT, SigReady >::set_custom_halos(), and dash::halo::HaloMatrixWrapper< MatrixT, SigReady >::stencil_operator().
|
inline |
Converts coordinates to halo memory coordinates for a given region index.
Definition at line 139 of file HaloMemory.h.
|
inline |
Converts coordinates to halo memory coordinates for a given region index and returns true if the coordinates are valid and false if not.
Definition at line 119 of file HaloMemory.h.