casacore
|
Copy objects from one C-style array to another. More...
#include <Copy.h>
Public Member Functions | |
void | objthrowmv1 (const void *to, const void *from, const size_t n) |
Throw the various AipsErrors when incorrect arguments used. More... | |
void | objthrowmv2 (const void *to, const void *from, const size_t n, const size_t toStride, const size_t fromStride) |
void | objthrowcp1 (const void *to, const void *from, const size_t n) |
void | objthrowcp2 (const void *to, const void *from, const size_t n, const size_t toStride, const size_t fromStride) |
void | objthrowfl1 (const void *to, const size_t n) |
void | objthrowfl2 (const void *to, const size_t n, const size_t toStride) |
Copy objects from one C-style array to another.
Public interface
Objset is used to fill a C-style array of objects.
Objcopy and objmove are used to copy objects from one place to another. Optionally a stride can be supplied.
The functions are equivalent to C's memcpy
and memmove
. When possible C++ standard library functions are used to implement them
Similar to memcpy and memmove, the difference between objcopy and objmove is that objmove takes account of an overlap of source and destination. In general, objcopy is slighty (but only slighty) faster.
Setting and copying arrays of built-in types:
Setting and copying arrays of a randomly chosen type:
void casacore::Copy_global_functions_throw::objthrowcp1 | ( | const void * | to, |
const void * | from, | ||
const size_t | n | ||
) |
void casacore::Copy_global_functions_throw::objthrowcp2 | ( | const void * | to, |
const void * | from, | ||
const size_t | n, | ||
const size_t | toStride, | ||
const size_t | fromStride | ||
) |
void casacore::Copy_global_functions_throw::objthrowfl1 | ( | const void * | to, |
const size_t | n | ||
) |
void casacore::Copy_global_functions_throw::objthrowfl2 | ( | const void * | to, |
const size_t | n, | ||
const size_t | toStride | ||
) |
void casacore::Copy_global_functions_throw::objthrowmv1 | ( | const void * | to, |
const void * | from, | ||
const size_t | n | ||
) |
Throw the various AipsErrors when incorrect arguments used.
void casacore::Copy_global_functions_throw::objthrowmv2 | ( | const void * | to, |
const void * | from, | ||
const size_t | n, | ||
const size_t | toStride, | ||
const size_t | fromStride | ||
) |