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

#include <PndCAArray.h>

Static Public Member Functions

static TAlloc (int s)
 
static void Free (T *const p, int size)
 

Detailed Description

template<typename T>
class PndCAInternal::Allocator< T, 0 >

Definition at line 194 of file PndCAArray.h.

Member Function Documentation

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

Definition at line 206 of file PndCAArray.h.

References p, and T.

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

Definition at line 207 of file PndCAArray.h.

References i.

207  {
208  for ( int i = 0; i < size; ++i ) {
209  p[i].~T();
210  }
211  std::free( p );
212  }
Int_t i
Definition: run_full.C:25
Double_t p
Definition: anasim.C:58

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