1 #ifndef FWCore_Utilities_SoATuple_h
2 #define FWCore_Utilities_SoATuple_h
107 template <
typename...
Args>
146 delete []
static_cast<AlignedType*
>(
m_values[0]);
154 template<
unsigned int I>
161 template<
unsigned int I>
165 #if GCC_PREREQUISITE(4,7,0)
166 return static_cast<ReturnType
const*
>(__builtin_assume_aligned(
m_values[I],Helper::kAlignment));
172 template<
unsigned int I>
203 template<
typename... FArgs>
213 template<
unsigned int I>
216 return *(
static_cast<ReturnType*
>(
m_values[
I])+iIndex);
220 template<
unsigned int I>
224 #if GCC_PREREQUISITE(4,7,0)
225 return static_cast<ReturnType*
>(__builtin_assume_aligned(
m_values[I],Helper::kAlignment));
227 return static_cast<ReturnType*
>(
m_values[
I]);
231 template<
unsigned int I>
240 for(
unsigned int i=0;
i<
sizeof...(Args);++
i) {
262 const size_t itemsNeeded = (memoryNeededInBytes+max_alignment-1)/
sizeof(AlignedType);
263 char * newMemory =
static_cast<char*
>(
static_cast<void*
>(
new AlignedType[itemsNeeded]));
267 delete []
static_cast<AlignedType*
>(oldMemory);
soahelper::AlignmentHelper< typename std::tuple_element< I, std::tuple< Args...> >::type >::Type const * begin() const
void changeSize(unsigned int iToSize)
SoATuple(const SoATuple< Args...> &iOther)
std::tuple< Args...> element
void swap(SoATuple< Args...> &iOther)
void emplace_back(FArgs &&...values)
void push_back(element const &values)
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
const std::complex< double > I
soahelper::AlignmentHelper< typename std::tuple_element< I, std::tuple< Args...> >::type >::Type * begin()
SoATuple(SoATuple< Args...> &&iOther)
const SoATuple< Args...> & operator=(const SoATuple< Args...> &iRHS)
soahelper::AlignmentHelper< typename std::tuple_element< I, std::tuple< Args...> >::type >::Type const * end() const
soahelper::AlignmentHelper< typename std::tuple_element< I, std::tuple< Args...> >::type >::Type * end()
void reserve(unsigned int iToSize)
void * m_values[sizeof...(Args)]