STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::metadata::detail::initialize_guided_offset_alignment Struct Reference

Helper functor to initialize the temporary local information required for the alignment. More...

Public Member Functions

 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
 

Public Types

typedef void result_type
 

Detailed Description

Helper functor to initialize the temporary local information required for the alignment.

Constructor & Destructor Documentation

◆ 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_fixedindicates if fixed-size metadata container can be used
sizesize of the metadata container to be allocated if fixed-sized container is being used
idxfirst index in the metadata container to be initialized by this location
Returns
What is the type, name, and meaning of the return value?

Member Function Documentation

◆ 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
xPosition of the first local metadata entry.
pThe resulting metadata alignment.
posPosition in the aligned metadata where this location will start writing.
partInitial locality metadata partition.
lmdTemporary local storage for metadata information.
lszNumber of local metadata entries to align.

The documentation for this struct was generated from the following file: