OFFIS DCMTK
Version 3.6.0
|
A template class for bit manipulations. More...
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 | |
A template class for bit manipulations.
This class is used to perform platform independent operations on typed memory areas.
Definition at line 48 of file ofbmanip.h.
|
inlinestatic |
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!
src | pointer to source memory |
dest | pointer to destination memory |
count | number of elements to be copied |
Definition at line 61 of file ofbmanip.h.
Referenced by DiMonoCopyTemplate< T >::copy(), DiColorPixelTemplate< T3 >::getPixelData(), DiRotateTemplate< T >::rotateLeft(), and DiRotateTemplate< T >::rotateRight().
|
inlinestatic |
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.
src | pointer to source memory |
dest | pointer to destination memory |
count | number of elements to be moved |
Definition at line 86 of file ofbmanip.h.
|
inlinestatic |
sets specified number of elements in destination memory to a defined value
dest | pointer to destination memory |
value | value to be set |
count | number of elements to be set |
Definition at line 123 of file ofbmanip.h.
Referenced by DiScaleTemplate< T >::scalePixel(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut().
|
inlinestatic |
sets specified number of elements in destination memory to zero
dest | pointer to destination memory |
count | number of elements to be set to zero |
Definition at line 146 of file ofbmanip.h.
Referenced by DiColorOutputPixelTemplate< T1, T2 >::convert(), DiInputPixelTemplate< T1, T2 >::determineMinMax(), DiMonoOutputPixelTemplate< T1, T2, T3 >::determineUsedValues(), DiMonoInputPixelTemplate< T1, T2, T3 >::DiMonoInputPixelTemplate(), DiMonoPixelTemplate< T3 >::getHistogramWindow(), DiColorPixelTemplate< T3 >::Init(), DiMonoOutputPixelTemplate< T1, T2, T3 >::nowindow(), DiMonoOutputPixelTemplate< T1, T2, T3 >::sigmoid(), DiMonoOutputPixelTemplate< T1, T2, T3 >::voilut(), and DiMonoOutputPixelTemplate< T1, T2, T3 >::window().