ZoneCopy.hpp File Reference

This is a wrapper which role is to copy zones of memory. More...

#include <Types.hpp>

Include dependency graph for ZoneCopy.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CONST_ZONE_COPY_DEF(T)
#define ZONE_COPY_DEF(T)

Functions

template<typename T1, typename T2>
void ZoneCopy (T1 *const destination, T2 *const source, size_t size)
 CONST_ZONE_COPY_DEF (real_t)
 ZONE_COPY_DEF (real_t)
 CONST_ZONE_COPY_DEF (int)
 ZONE_COPY_DEF (int)


Detailed Description

This is a wrapper which role is to copy zones of memory.

Author:
Stephane Del Pino
Date:
Thu Oct 24 15:26:37 2002

Definition in file ZoneCopy.hpp.


Define Documentation

#define CONST_ZONE_COPY_DEF (  ) 

Value:

inline void ZoneCopy(T* const destination,      \
                      const T* const source,    \
                      size_t size);

Definition at line 45 of file ZoneCopy.hpp.

#define ZONE_COPY_DEF (  ) 

Value:

inline void ZoneCopy(T* const destination,      \
                      const T* const source,    \
                      size_t size);

Definition at line 50 of file ZoneCopy.hpp.


Function Documentation

CONST_ZONE_COPY_DEF ( int   ) 

CONST_ZONE_COPY_DEF ( real_t   ) 

ZONE_COPY_DEF ( int   ) 

ZONE_COPY_DEF ( real_t   ) 

template<typename T1, typename T2>
void ZoneCopy ( T1 *const   destination,
T2 *const   source,
size_t  size 
) [inline]

Definition at line 36 of file ZoneCopy.hpp.

Referenced by Vector< Tetrahedron >::operator=(), and Vector< Tetrahedron >::Vector().

00039 {
00040   for(size_t i=0; i<size; ++i) {
00041     destination[i] = source[i];
00042   }
00043 }


Generated on Wed Nov 19 00:03:59 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6