DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Static Public Member Functions
OFBitmanipTemplate< T > Class Template Reference

A template class for bit manipulations. More...

List of all members.

Static Public Member Functions

static void copyMem (const T *src, T *dest, const unsigned long count)
 copies specified number of elements from source to destination.
static void moveMem (const T *src, T *dest, unsigned long count)
 moves specified number of elements from source to destination.
static void setMem (T *dest, const T value, const unsigned long count)
 sets specified number of elements in destination memory to a defined value
static void zeroMem (T *dest, const unsigned long count)
 sets specified number of elements in destination memory to zero

Detailed Description

template<class T>
class OFBitmanipTemplate< T >

A template class for bit manipulations.

This class is used to perform platform independent operations on typed memory areas.


Member Function Documentation

template<class T >
static void OFBitmanipTemplate< T >::copyMem ( const T *  src,
T *  dest,
const unsigned long  count 
) [inline, static]

copies specified number of elements from source to destination.

Both src and dest must be aligned according to T's align requirements. These memory areas must not overlap!

Parameters:
srcpointer to source memory
destpointer to destination memory
countnumber of elements to be copied
template<class T >
static void OFBitmanipTemplate< T >::moveMem ( const T *  src,
T *  dest,
unsigned long  count 
) [inline, static]

moves specified number of elements from source to destination.

Both src and dest must be aligned according to T's align requirements. If src and dest are not equal, they must be at least sizeof(T) bytes apart. These memory areas may overlap.

Parameters:
srcpointer to source memory
destpointer to destination memory
countnumber of elements to be moved
template<class T >
static void OFBitmanipTemplate< T >::setMem ( T *  dest,
const T  value,
const unsigned long  count 
) [inline, static]

sets specified number of elements in destination memory to a defined value

Parameters:
destpointer to destination memory
valuevalue to be set
countnumber of elements to be set
template<class T >
static void OFBitmanipTemplate< T >::zeroMem ( T *  dest,
const unsigned long  count 
) [inline, static]

sets specified number of elements in destination memory to zero

Parameters:
destpointer to destination memory
countnumber of elements to be set to zero

The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027