CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Attributes
mkfit::CcAlloc< T > Class Template Reference

#include <HitStructures.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 365 of file HitStructures.h.

Member Typedef Documentation

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

Definition at line 367 of file HitStructures.h.

Constructor & Destructor Documentation

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

Definition at line 369 of file HitStructures.h.

Member Function Documentation

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

Definition at line 373 of file HitStructures.h.

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

373 { return m_pool->allocate(n); }
CcPool< T > * m_pool
template<class T>
void mkfit::CcAlloc< T >::deallocate ( T p,
std::size_t  n 
)
inlinenoexcept
template<class T>
const void* mkfit::CcAlloc< T >::pool_id ( ) const
inline

Definition at line 371 of file HitStructures.h.

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

Referenced by mkfit::operator==().

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

Member Data Documentation

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