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

#include <PndCAArray.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 PndCAInternal::Allocator< T, PndCAFullyCacheLineAligned >

Definition at line 172 of file PndCAArray.h.

Member Typedef Documentation

Definition at line 175 of file PndCAArray.h.

Member Function Documentation

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

Definition at line 185 of file PndCAArray.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 PndCAInternal::Allocator< T, PndCAFullyCacheLineAligned >::Free ( T2 *const  p,
int  size 
)
inlinestatic

Definition at line 186 of file PndCAArray.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: