CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
mkfit::CcAlloc< T > Class Template Reference

#include <TrackStructures.h>

Public Types

typedef T value_type
 

Public Member Functions

Tallocate (std::size_t n)
 
 CcAlloc (CcPool< T > *p)
 
void deallocate (T *p, std::size_t n) noexcept
 
const void * pool_id () const
 

Private Attributes

CcPool< T > * m_pool
 

Detailed Description

template<class T>
class mkfit::CcAlloc< T >

Definition at line 134 of file TrackStructures.h.

Member Typedef Documentation

◆ value_type

template<class T>
typedef T mkfit::CcAlloc< T >::value_type

Definition at line 136 of file TrackStructures.h.

Constructor & Destructor Documentation

◆ CcAlloc()

template<class T>
mkfit::CcAlloc< T >::CcAlloc ( CcPool< T > *  p)
inline

Definition at line 138 of file TrackStructures.h.

Member Function Documentation

◆ allocate()

template<class T>
T* mkfit::CcAlloc< T >::allocate ( std::size_t  n)
inline

Definition at line 142 of file TrackStructures.h.

References mkfit::CcAlloc< T >::m_pool, and dqmiodumpmetadata::n.

142 { return m_pool->allocate(n); }
CcPool< T > * m_pool

◆ deallocate()

template<class T>
void mkfit::CcAlloc< T >::deallocate ( T p,
std::size_t  n 
)
inlinenoexcept

◆ pool_id()

template<class T>
const void* mkfit::CcAlloc< T >::pool_id ( ) const
inline

Definition at line 140 of file TrackStructures.h.

References mkfit::CcAlloc< T >::m_pool.

140 { return m_pool; }
CcPool< T > * m_pool

Member Data Documentation

◆ m_pool

template<class T>
CcPool<T>* mkfit::CcAlloc< T >::m_pool
private