npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
allocators.hh File Reference

Utilities related to memory management. More...

#include <cassert>

Go to the source code of this file.

Namespaces

 npstat
 

Functions

template<typename T >
void npstat::Private::reallyDestroyBuffer (T *thisBuffer)
 
template<typename T >
void npstat::Private::dontDestroyBuffer (T *)
 
template<typename T >
T * npstat::makeBuffer (unsigned sizeNeeded, T *stackBuffer, unsigned sizeofStackBuffer)
 
template<typename T >
void npstat::destroyBuffer (T *thisBuffer, const T *stackBuffer)
 
template<typename T1 , typename T2 >
void npstat::copyBuffer (T1 *dest, const T2 *source, const unsigned long len)
 
template<typename T1 , typename T2 >
void npstat::transposeBuffer (T1 *dest, const T2 *source, const unsigned long dim)
 
template<typename T1 , typename T2 >
void npstat::transposeBuffer (T1 *dest, const T2 *source, const unsigned long M, const unsigned long N)
 
template<typename T >
void npstat::clearBuffer (T *buf, const unsigned long len)
 

Detailed Description

Utilities related to memory management.

Author: I. Volobouev

October 2009