CMS 3D CMS Logo

IgHookAlloc< T > Class Template Reference

#include <IgTools/IgHook/interface/IgHookAlloc.h>

List of all members.

Public Types

typedef std::allocator< T >
::pointer 
pointer
typedef std::allocator< T >
::size_type 
size_type

Public Member Functions

T * allocate (size_type n, const T *hint=0)
void deallocate (pointer p, size_type count)
template<class O>
 IgHookAlloc (const IgHookAlloc< O > &x) throw ()
 IgHookAlloc (const IgHookAlloc &x) throw ()
 IgHookAlloc (void) throw ()
 ~IgHookAlloc (void) throw ()

Classes

struct  rebind


Detailed Description

template<class T>
class IgHookAlloc< T >

Definition at line 29 of file IgHookAlloc.h.


Member Typedef Documentation

template<class T>
typedef std::allocator<T>::pointer IgHookAlloc< T >::pointer

Definition at line 38 of file IgHookAlloc.h.

template<class T>
typedef std::allocator<T>::size_type IgHookAlloc< T >::size_type

Definition at line 37 of file IgHookAlloc.h.


Constructor & Destructor Documentation

template<class T>
IgHookAlloc< T >::IgHookAlloc ( void   )  throw () [inline]

Definition at line 54 of file IgHookAlloc.h.

00055 {}

template<class T>
IgHookAlloc< T >::IgHookAlloc ( const IgHookAlloc< T > &  x  )  throw () [inline]

Definition at line 59 of file IgHookAlloc.h.

00060     : std::allocator<T> (x)
00061 {}

template<class T>
template<class O>
IgHookAlloc< T >::IgHookAlloc ( const IgHookAlloc< O > &  x  )  throw () [inline]

Definition at line 66 of file IgHookAlloc.h.

00067     : std::allocator<T> (x)
00068 {}

template<class T>
IgHookAlloc< T >::~IgHookAlloc ( void   )  throw () [inline]

Definition at line 72 of file IgHookAlloc.h.

00073 {}


Member Function Documentation

template<class T>
T * IgHookAlloc< T >::allocate ( size_type  n,
const T *  hint = 0 
) [inline]

Definition at line 77 of file IgHookAlloc.h.

00078 { return (T *) malloc (n * sizeof (T)); }

template<class T>
void IgHookAlloc< T >::deallocate ( pointer  p,
size_type  count 
) [inline]

Definition at line 82 of file IgHookAlloc.h.

00083 { free (p); }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:25:12 2009 for CMSSW by  doxygen 1.5.4