3dpcp/.svn/pristine/88/88ae03bdd6f0c77664508d63d5854ce749d4822c.svn-base

47 lines
1.1 KiB
Text
Raw Normal View History

2012-09-16 12:33:11 +00:00
#ifndef CSYSTEM_H_
#define CSYSTEM_H_
#ifdef WIN32
#pragma warning(disable:4786)
#endif
/**
* @class CSystem
* @brief This class encapsulates system specific calls
* @author Stefan May
*/
template <class T>
class CSystem
{
public:
/**
* Allocation of 2D arrays
* @param unRows number of rows
* @param unCols number of columns
* @param aatArray data array
*/
static void allocate (unsigned int unRows, unsigned int unCols, T** &aatArray);
/**
* Deallocation of 2D arrays. Pointers are set to null.
* @param aatArray data array
*/
static void deallocate (T** &aatArray);
/**
* Allocation of 3D arrays
* @param unRows number of rows
* @param unCols number of columns
* @param unSlices number of slices
* @param aaatArray data array
*/
static void allocate (unsigned int unRows, unsigned int unCols, unsigned int unSlices, T*** &aaatArray);
/**
* Deallocation of 3D arrays. Pointers are set to null.
* @param aaatArray data array
*/
static void deallocate (T*** &aaatArray);
};
#include "slam6d/cuda/CSystem.icc"
#endif /*CSYSTEM_H_*/