#include <Copy.h>
Definition at line 129 of file Copy.h.
Public Member Functions | |
| template<class T> | |
| void | objmove (T *to, const T *from, uInt n) |
The general function to copy n objects from one place to another if overlap between to and from fields is possible. | |
| template<class T> | |
| void | objmove (T *to, const T *from, uInt n, uInt toStride, uInt fromStride) |
| template<class T> | |
| void | objcopy (T *to, const T *from, uInt n) |
The non-general function to copy n objects from one place to another. | |
| template<class T> | |
| void | objcopy (T *to, const T *from, uInt n, uInt toStride, uInt fromStride) |
| template<class T> | |
| void | objset (T *to, const T fillValue, uInt n) |
Fill n elements of an array of objects with the given value, optionally with a stride. | |
| template<class T> | |
| void | objset (T *to, const T fillValue, uInt n, uInt toStride) |
| void casa::Copy_global_functions_copy::objmove | ( | T * | to, | |
| const T * | from, | |||
| uInt | n | |||
| ) | [inline] |
The general function to copy n objects from one place to another if overlap between to and from fields is possible.
Strides may be specified, i.e. you may copy from every fromStride-th position into every toStride-th one. The function will call std::copy() when possible. Objmove works correctly if the source and destination overlap in any way. An exception will be thrown if the source or the destination does not exist (and n is non-zero) or if the strides are non-positive.
| void casa::Copy_global_functions_copy::objcopy | ( | T * | to, | |
| const T * | from, | |||
| uInt | n | |||
| ) | [inline] |
The non-general function to copy n objects from one place to another.
Strides may be specified, i.e. you may copy from every fromStride-th position into every toStride-th one.
Objcopy does not take an overlap of source and destination into account. Objmove should be used if that is an issue.
An exception will be thrown if the source or the destination does not exist or if the strides are non-positive.
| void casa::Copy_global_functions_copy::objset | ( | T * | to, | |
| const T | fillValue, | |||
| uInt | n | |||
| ) | [inline] |
1.5.1