Helper functor to initialize the temporary local information required for the alignment.
More...
|
| initialize_guided_offset_alignment (bool use_fixed, size_t size, size_t idx) |
| Captures state needed for intialization of metadata containers for each view being aligned. More...
|
|
template<typename AlignMD , typename AlignPos , typename Part , typename LocalMD > |
void | operator() (long long &x, AlignMD &p, AlignPos &pos, Part const &part, LocalMD &lmd, size_t &lsz) const |
|
Helper functor to initialize the temporary local information required for the alignment.
◆ initialize_guided_offset_alignment()
stapl::metadata::detail::initialize_guided_offset_alignment::initialize_guided_offset_alignment |
( |
bool |
use_fixed, |
|
|
size_t |
size, |
|
|
size_t |
idx |
|
) |
| |
Captures state needed for intialization of metadata containers for each view being aligned.
- Parameters
-
use_fixed | indicates if fixed-size metadata container can be used |
size | size of the metadata container to be allocated if fixed-sized container is being used |
idx | first index in the metadata container to be initialized by this location |
- Returns
- What is the type, name, and meaning of the return value?
◆ operator()()
template<typename AlignMD , typename AlignPos , typename Part , typename LocalMD >
void stapl::metadata::detail::initialize_guided_offset_alignment::operator() |
( |
long long & |
x, |
|
|
AlignMD & |
p, |
|
|
AlignPos & |
pos, |
|
|
Part const & |
part, |
|
|
LocalMD & |
lmd, |
|
|
size_t & |
lsz |
|
) |
| const |
- Parameters
-
x | Position of the first local metadata entry. |
p | The resulting metadata alignment. |
pos | Position in the aligned metadata where this location will start writing. |
part | Initial locality metadata partition. |
lmd | Temporary local storage for metadata information. |
lsz | Number of local metadata entries to align. |
The documentation for this struct was generated from the following file: