FairRoot/PandaRoot
Public Types | Static Public Member Functions | List of all members
PndFTSInternal::Allocator< T, PndFTSFullyCacheLineAligned > Class Template Reference

#include <PndFTSArray.h>

Public Types

typedef CacheLineSizeHelper< TT2
 

Static Public Member Functions

static T2Alloc (int s)
 
static void Free (T2 *const p, int size)
 

Detailed Description

template<typename T>
class PndFTSInternal::Allocator< T, PndFTSFullyCacheLineAligned >

Definition at line 172 of file PndFTSArray.h.

Member Typedef Documentation

Definition at line 175 of file PndFTSArray.h.

Member Function Documentation

template<typename T >
static T2* PndFTSInternal::Allocator< T, PndFTSFullyCacheLineAligned >::Alloc ( int  s)
inlinestatic

Definition at line 185 of file PndFTSArray.h.

References p.

185 { T2 *p; posix_memalign( &p, 128, s * sizeof( T2 ) ); return new( p ) T2[s]; }
Double_t p
Definition: anasim.C:58
TLorentzVector s
Definition: Pnd2DStar.C:50
template<typename T >
static void PndFTSInternal::Allocator< T, PndFTSFullyCacheLineAligned >::Free ( T2 *const  p,
int  size 
)
inlinestatic

Definition at line 186 of file PndFTSArray.h.

References i.

186  {
187  for ( int i = 0; i < size; ++i ) {
188  p[i].~T2();
189  }
190  std::free( p );
191  }
Double_t p
Definition: anasim.C:58
Int_t i
Definition: run_full.C:25

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