PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
pvSubArrayCopy.h
1 /* pvSubArrayCopy.h */
2 /*
3  * Copyright information and license terms for this software can be
4  * found in the file LICENSE that is included with the distribution
5  */
10 #ifndef PVSUBARRAYCOPY_H
11 #define PVSUBARRAYCOPY_H
12 
13 #include <pv/pvData.h>
14 
15 #include <shareLib.h>
16 
17 namespace epics { namespace pvData {
18 
29 template<typename T>
30 epicsShareExtern void copy(
31  PVValueArray<T> & pvFrom,
32  size_t fromOffset,
33  size_t fromStride,
34  PVValueArray<T> & pvTo,
35  size_t toOffset,
36  size_t toStride,
37  size_t count);
38 
49 epicsShareExtern void copy(
50  PVScalarArray & pvFrom,
51  size_t fromOffset,
52  size_t fromStride,
53  PVScalarArray & pvTo,
54  size_t toOffset,
55  size_t toStride,
56  size_t count);
57 
69 epicsShareExtern void copy(
70  PVStructureArray & pvFrom,
71  size_t fromOffset,
72  size_t fromStride,
73  PVStructureArray & pvTo,
74  size_t toOffset,
75  size_t toStride,
76  size_t count);
77 
89 epicsShareExtern void copy(
90  PVArray & pvFrom,
91  size_t fromOffset,
92  size_t fromStride,
93  PVArray & pvTo,
94  size_t toOffset,
95  size_t toStride,
96  size_t count);
97 
109 epicsShareExtern void copy(
110  PVArray::shared_pointer const & pvFrom,
111  size_t fromOffset,
112  size_t fromStride,
113  PVArray::shared_pointer & pvTo,
114  size_t toOffset,
115  size_t toStride,
116  size_t count);
117 
118 }}
119 
120 
121 #endif /* PVSUBARRAYCOPY_H */
PVValueArray< PVStructurePtr > PVStructureArray
Definition: pvData.h:99
constexpr iterator_traits< _InputIterator >::difference_type count(_InputIterator __first, _InputIterator __last, const _Tp &__value)
void copy(PVValueArray< T > &pvFrom, size_t fromOffset, size_t fromStride, PVValueArray< T > &pvTo, size_t toOffset, size_t toStride, size_t count)
Copy a subarray from one scalar array to another.