MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Functions
mdsMemory.h File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2010 by Michal Spanel
. More...

#include "mdsAssert.h"
#include "mdsTypes.h"
#include <new>
#include <cstdlib>
#include <cstring>

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


namespace  mds::base

Functions

template<typename T , typename U >
void mds::base::memAdd (T *pMem, const U &Value, tSize Count)
 Adds Value to all memory elements.
template<typename T >
T * mds::base::memAlloc (tSize Count)
 Allocates memory.
template<typename T >
void mds::base::memCopy (T *pDst, const T *pSrc, tSize Count)
 Copies memory.
template<typename T , typename U >
void mds::base::memDiv (T *pMem, const U &Value, tSize Count)
 Divides memory elements by Value.
template<typename T >
void mds::base::memFree (T *pMem)
 De-allocates memory.
template<typename T >
void mds::base::memLoopCopy (T *pDst, const T *pSrc, tSize Count)
 Copies memory.
template<typename T , typename U >
void mds::base::memMult (T *pMem, const U &Value, tSize Count)
 Multiples memory elements by Value.
template<typename T >
T * mds::base::memRealloc (T *pMem, tSize Count)
 Reallocates memory.
template<typename T >
void mds::base::memSet (T *pMem, const T &Value, tSize Count)
 Initializes memory.
template<typename T , typename U >
void mds::base::memSparseAdd (T *pMem, tSize Stride, const U &Value, tSize Count)
 Adds Value to all memory elements.
template<typename T >
void mds::base::memSparseCopy (T *pDst, tSize DstStride, const T *pSrc, tSize SrcStride, tSize Count)
 Copies memory.
template<typename T , typename U >
void mds::base::memSparseDiv (T *pMem, tSize Stride, const U &Value, tSize Count)
 Divides memory elements by Value.
template<typename T , typename U >
void mds::base::memSparseMult (T *pMem, tSize Stride, const U &Value, tSize Count)
 Multiples memory elements by Value.
template<typename T >
void mds::base::memSparseSet (T *pMem, tSize Stride, const T &Value, tSize Count)
 Initializes memory.
template<typename T , typename U >
void mds::base::memSparseSub (T *pMem, tSize Stride, const U &Value, tSize Count)
 Subtracts Value from memory elements.
template<typename T >
void mds::base::memSparseSwap (T *p1, tSize Stride1, const T *p2, tSize Stride2, tSize Count)
 Swaps content of two memory blocks.
template<typename T , typename U >
void mds::base::memSub (T *pMem, const U &Value, tSize Count)
 Subtracts Value from memory elements.
template<typename T >
void mds::base::memSwap (T *p1, T *p2, tSize Count)
 Swaps content of two memory blocks.
template<typename T , typename U >
void mds::base::memVectAdd (T *pDst, const U *pSrc, tSize Count)
 Adds memory elements pointed to by pSrc to pDst.
template<typename T , typename U >
void mds::base::memVectDiv (T *pDst, const U *pSrc, tSize Count)
 Divides memory elements pointed to by 'pDst' by 'pSrc' elements.
template<typename T , typename U >
void mds::base::memVectMult (T *pDst, const U *pSrc, tSize Count)
 Multiples memory elements pointed to by 'pDst' by 'pSrc' elements.
template<typename T , typename U , typename V >
void mds::base::memVectMultAdd (T *pDst, const U *pSrc, const V &Value, tSize Count)
 Adds memory elements pointed to by pSrc and multiplied by Value to pDst.
template<typename T , typename U >
void mds::base::memVectSparseAdd (T *pDst, tSize DstStride, const U *pSrc, tSize SrcStride, tSize Count)
 Adds memory elements pointed to by 'pSrc' to 'pDst'.
template<typename T , typename U >
void mds::base::memVectSparseDiv (T *pDst, tSize DstStride, const U *pSrc, tSize SrcStride, tSize Count)
 Divides memory elements pointed to by 'pDst' by 'pSrc' elements.
template<typename T , typename U >
void mds::base::memVectSparseMult (T *pDst, tSize DstStride, const U *pSrc, tSize SrcStride, tSize Count)
 Multiples memory elements pointed to by 'pDst' by 'pSrc' elements.
template<typename T , typename U , typename V >
void mds::base::memVectSparseMultAdd (T *pDst, tSize DstStride, const U *pSrc, tSize SrcStride, const V &Value, tSize Count)
 Adds memory elements pointed to by 'pSrc' and multiplied by Value to 'pDst'.
template<typename T , typename U >
void mds::base::memVectSparseSub (T *pDst, tSize DstStride, const U *pSrc, tSize SrcStride, tSize Count)
 Subtracts memory elements pointed to by 'pSrc' from 'pDst'.
template<typename T , typename U >
void mds::base::memVectSub (T *pDst, const U *pSrc, tSize Count)
 Subtracts memory elements pointed to by 'pSrc' from 'pDst'.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2010 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2004/12/23

Id:
mdsMemory.h 1863 2010-08-31 20:40:15Z spanel

Description: