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::proc_equal_offset Class Reference

Helper functor to align metadata entries that have the same offset (are left aligned). More...

Public Member Functions

 proc_equal_offset (size_t mblk, bool fixed_size)
 
template<typename SzOff , typename Part , typename LocalMD , typename AlignPart >
void operator() (SzOff sz_off, Part const &part, long long i, LocalMD &local_md, AlignPart &alignpart, size_t &idx, long long &k) const
 Aligns metadata that have the same offset. More...
 

Public Types

typedef void result_type
 

Detailed Description

Helper functor to align metadata entries that have the same offset (are left aligned).

Member Function Documentation

◆ operator()()

template<typename SzOff , typename Part , typename LocalMD , typename AlignPart >
void stapl::metadata::detail::proc_equal_offset::operator() ( SzOff  sz_off,
Part const &  part,
long long  i,
LocalMD &  local_md,
AlignPart &  alignpart,
size_t &  idx,
long long &  k 
) const

Aligns metadata that have the same offset.

Parameters
sz_offInformation about size and offset of the metadata to be aligned.
partPartitioned metadata locality.
iIndex of the metadata that is going to be aligned.
local_mdTemporary local storage for metadata entries.
alignpartContainer for metadata locality that contains the resulting coarsened partitioned metadata locality.
idxIndex in the aligned metadata to write.
kReturns the increment that needs to be applied to advance to the next metadata locality.

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