Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KFPSimdAllocator< T > Class Template Reference

Allocator which is needed to allocate memory in std::vector aligned by the size of SIMD vectors. More...

#include <KFParticle/blob/master/KFParticle/KFPSimdAllocator.h>

Classes

class  rebind
 Rebind allocator to type U of the SIMD allocator. More...
 

Public Types

typedef T value_type
 
typedef Tpointer
 
typedef const Tconst_pointer
 
typedef Treference
 
typedef const Tconst_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

pointer address (reference value) const
 
const_pointer address (const_reference value) const
 
 KFPSimdAllocator () throw ()
 
 KFPSimdAllocator (const KFPSimdAllocator &) throw ()
 
template<class U >
 KFPSimdAllocator (const KFPSimdAllocator< U > &) throw ()
 
 ~KFPSimdAllocator () throw ()
 
size_type max_size () const throw ()
 
pointer allocate (size_type num, const void *=0)
 
void construct (pointer p)
 
void construct (pointer p, const T &value)
 
void destroy (pointer p)
 
void deallocate (pointer p, size_type num)
 
void * operator new (size_t size, void *ptr)
 new operator for allocation of the SIMD-alligned dynamic memory allocation
 
void * operator new[] (size_t size, void *ptr)
 new operator for allocation of the SIMD-alligned dynamic memory allocation
 
void * operator new (size_t size)
 new operator for allocation of the SIMD-alligned dynamic memory allocation
 
void * operator new[] (size_t size)
 new operator for allocation of the SIMD-alligned dynamic memory allocation
 
void operator delete (void *ptr, size_t)
 delete operator for the SIMD-alligned dynamic memory release
 
void operator delete[] (void *ptr, size_t)
 delete operator for the SIMD-alligned dynamic memory release
 

Detailed Description

template<class T>
class KFPSimdAllocator< T >

Allocator which is needed to allocate memory in std::vector aligned by the size of SIMD vectors.

Author
M.Zyzak, I.Kisel
Date
05.02.2019
Version
1.0

Definition at line 35 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 35 of file KFPSimdAllocator.h

Member Typedef Documentation

template<class T>
typedef const T* KFPSimdAllocator< T >::const_pointer

Definition at line 40 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 40 of file KFPSimdAllocator.h

template<class T>
typedef const T& KFPSimdAllocator< T >::const_reference

Definition at line 42 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 42 of file KFPSimdAllocator.h

template<class T>
typedef std::ptrdiff_t KFPSimdAllocator< T >::difference_type

Definition at line 44 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 44 of file KFPSimdAllocator.h

template<class T>
typedef T* KFPSimdAllocator< T >::pointer

Definition at line 39 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 39 of file KFPSimdAllocator.h

template<class T>
typedef T& KFPSimdAllocator< T >::reference

Definition at line 41 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 41 of file KFPSimdAllocator.h

template<class T>
typedef std::size_t KFPSimdAllocator< T >::size_type

Definition at line 43 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 43 of file KFPSimdAllocator.h

template<class T>
typedef T KFPSimdAllocator< T >::value_type

Definition at line 38 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 38 of file KFPSimdAllocator.h

Constructor & Destructor Documentation

template<class T>
KFPSimdAllocator< T >::KFPSimdAllocator ( ) throw ()
inline

Definition at line 69 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 69 of file KFPSimdAllocator.h

template<class T>
KFPSimdAllocator< T >::KFPSimdAllocator ( const KFPSimdAllocator< T > &  ) throw ()
inline

Definition at line 70 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 70 of file KFPSimdAllocator.h

template<class T>
template<class U >
KFPSimdAllocator< T >::KFPSimdAllocator ( const KFPSimdAllocator< U > &  ) throw ()
inline

Definition at line 72 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 72 of file KFPSimdAllocator.h

template<class T>
KFPSimdAllocator< T >::~KFPSimdAllocator ( ) throw ()
inline

Definition at line 73 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 73 of file KFPSimdAllocator.h

Member Function Documentation

template<class T>
pointer KFPSimdAllocator< T >::address ( reference  value) const
inline

Return address of "value".

Definition at line 58 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 58 of file KFPSimdAllocator.h

References value.

template<class T>
const_pointer KFPSimdAllocator< T >::address ( const_reference  value) const
inline

Return address of "value".

Definition at line 62 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 62 of file KFPSimdAllocator.h

References value.

template<class T>
pointer KFPSimdAllocator< T >::allocate ( size_type  num,
const void *  = 0 
)
inline

Allocate but don't initialize num elements of type T.

Definition at line 81 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 81 of file KFPSimdAllocator.h

References Acts::UnitConstants::T.

template<class T>
void KFPSimdAllocator< T >::construct ( pointer  p)
inline

Initialize elements of allocated storage "p" with an empty element.

Definition at line 88 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 88 of file KFPSimdAllocator.h

References merge_hashes::p, and Acts::UnitConstants::T.

template<class T>
void KFPSimdAllocator< T >::construct ( pointer  p,
const T value 
)
inline

Initialize elements of allocated storage "p" with value "value".

Definition at line 94 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 94 of file KFPSimdAllocator.h

References merge_hashes::p, and Acts::UnitConstants::T.

template<class T>
void KFPSimdAllocator< T >::deallocate ( pointer  p,
size_type  num 
)
inline

Deallocate storage p of deleted elements.

Definition at line 105 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 105 of file KFPSimdAllocator.h

References merge_hashes::p, and Acts::UnitConstants::T.

template<class T>
void KFPSimdAllocator< T >::destroy ( pointer  p)
inline

Destroy elements of initialized storage "p".

Definition at line 99 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 99 of file KFPSimdAllocator.h

template<class T>
size_type KFPSimdAllocator< T >::max_size ( void  ) const throw ()
inline

Return maximum number of elements that can be allocated.

Definition at line 76 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 76 of file KFPSimdAllocator.h

References Acts::UnitConstants::T.

template<class T>
void KFPSimdAllocator< T >::operator delete ( void *  ptr,
size_t   
)
inline

delete operator for the SIMD-alligned dynamic memory release

Definition at line 115 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 115 of file KFPSimdAllocator.h

template<class T>
void KFPSimdAllocator< T >::operator delete[] ( void *  ptr,
size_t   
)
inline

delete operator for the SIMD-alligned dynamic memory release

Definition at line 116 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 116 of file KFPSimdAllocator.h

template<class T>
void* KFPSimdAllocator< T >::operator new ( size_t  size,
void *  ptr 
)
inline

new operator for allocation of the SIMD-alligned dynamic memory allocation

Definition at line 111 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 111 of file KFPSimdAllocator.h

References size.

template<class T>
void* KFPSimdAllocator< T >::operator new ( size_t  size)
inline

new operator for allocation of the SIMD-alligned dynamic memory allocation

Definition at line 113 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 113 of file KFPSimdAllocator.h

References size.

template<class T>
void* KFPSimdAllocator< T >::operator new[] ( size_t  size,
void *  ptr 
)
inline

new operator for allocation of the SIMD-alligned dynamic memory allocation

Definition at line 112 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 112 of file KFPSimdAllocator.h

References size.

template<class T>
void* KFPSimdAllocator< T >::operator new[] ( size_t  size)
inline

new operator for allocation of the SIMD-alligned dynamic memory allocation

Definition at line 114 of file KFPSimdAllocator.h.

View newest version in sPHENIX GitHub at line 114 of file KFPSimdAllocator.h

References size.


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