ATLAS Offline Software
|
Helper: Convert a PackedLink to an ElementLink and vice-versa. More...
#include <PackedLinkConversions.h>
Public Types | |
using | value_type = typename PLVH::Link_t |
Resulting ElementLink type. More... | |
using | PLink_t = typename PLVH::PLink_t |
The PackedLink type. More... | |
using | DLink_t = typename PLVH::DLink_t |
The linked DataLink type. More... | |
using | DataLinkBase_span = typename PLVH::DataLinkBase_span |
Type of span over DataLinkBase's. More... | |
Public Member Functions | |
PackedLinkConverter (AuxVectorData &container, SG::auxid_t auxid, SG::auxid_t linked_auxid) | |
Constructor. More... | |
const value_type | operator() (const PackedLinkBase &plink) const |
Convert a PackedLink to an ElementLink. More... | |
void | set (PackedLinkBase &pl, const value_type &link) |
Convert an ElementLink to a PackedLink. More... | |
template<class VALLOC , ElementLinkRange< CONT > RANGE> | |
void | set (std::vector< PLink_t, VALLOC > &plv, const RANGE &r) |
Convert a range of ElementLinks to a vector of PackedLinks. More... | |
template<class VALLOC , ElementLinkRange< CONT > RANGE> | |
void | insert (std::vector< PLink_t, VALLOC > &plv, size_t pos, const RANGE &r) |
Insert a range of ElementLinks into a vector of PackedLinks. More... | |
Private Types | |
using | PLVH = detail::PackedLinkVectorHelper< CONT > |
Helper class for maintaining the DataLinks. More... | |
Private Attributes | |
AuxVectorData & | m_container |
The container holding the variables. More... | |
PLVH::LinkedVector | m_linkedVec |
The vector of DataLinks. More... | |
DataLinkBase_span | m_dlinks |
Span over DataLinks. More... | |
Helper: Convert a PackedLink to an ElementLink and vice-versa.
Definition at line 119 of file PackedLinkConversions.h.
using SG::detail::PackedLinkConverter< CONT >::DataLinkBase_span = typename PLVH::DataLinkBase_span |
Type of span over DataLinkBase's.
Definition at line 137 of file PackedLinkConversions.h.
using SG::detail::PackedLinkConverter< CONT >::DLink_t = typename PLVH::DLink_t |
The linked DataLink type.
Definition at line 134 of file PackedLinkConversions.h.
using SG::detail::PackedLinkConverter< CONT >::PLink_t = typename PLVH::PLink_t |
The PackedLink type.
Definition at line 131 of file PackedLinkConversions.h.
|
private |
Helper class for maintaining the DataLinks.
Definition at line 123 of file PackedLinkConversions.h.
using SG::detail::PackedLinkConverter< CONT >::value_type = typename PLVH::Link_t |
Resulting ElementLink type.
Definition at line 128 of file PackedLinkConversions.h.
SG::detail::PackedLinkConverter< CONT >::PackedLinkConverter | ( | AuxVectorData & | container, |
SG::auxid_t | auxid, | ||
SG::auxid_t | linked_auxid | ||
) |
Constructor.
container | Container holding the variables. |
auxid | The ID of the PackedLink variable. |
linked_auxid | The ID of the linked variable of DataLinks. |
void SG::detail::PackedLinkConverter< CONT >::insert | ( | std::vector< PLink_t, VALLOC > & | plv, |
size_t | pos, | ||
const RANGE & | r | ||
) |
Insert a range of ElementLinks into a vector of PackedLinks.
plv | The destination vector of PackedLinks. |
pos | Position in the container at which to insert the range. |
r | The range of ElementLinks. |
const value_type SG::detail::PackedLinkConverter< CONT >::operator() | ( | const PackedLinkBase & | plink | ) | const |
Convert a PackedLink to an ElementLink.
plink | The link to transform. |
void SG::detail::PackedLinkConverter< CONT >::set | ( | PackedLinkBase & | pl, |
const value_type & | link | ||
) |
Convert an ElementLink to a PackedLink.
pl | The destination PackedLink. |
link | The link to transform. |
void SG::detail::PackedLinkConverter< CONT >::set | ( | std::vector< PLink_t, VALLOC > & | plv, |
const RANGE & | r | ||
) |
Convert a range of ElementLinks to a vector of PackedLinks.
plv | The destination vector of PackedLinks. |
r | The range of ElementLinks. |
|
private |
The container holding the variables.
Definition at line 187 of file PackedLinkConversions.h.
|
private |
Span over DataLinks.
Definition at line 193 of file PackedLinkConversions.h.
|
private |
The vector of DataLinks.
Definition at line 190 of file PackedLinkConversions.h.