Matej Sekoranja
57b3e9a8b2
run EPICS Harness Tests on CI
2013-11-08 00:01:24 +01:00
Matej Sekoranja
35dad272eb
merge
2013-11-07 14:13:37 +01:00
Matej Sekoranja
d40c41048d
PVUnion/PVUnionArray support and tests
2013-11-07 14:12:26 +01:00
Marty Kraimer
03f59c94b4
commit after merge
2013-11-06 07:42:03 -05:00
Marty Kraimer
87718f1c82
get rid of warnings
2013-11-06 07:41:16 -05:00
Matej Sekoranja
cbf7b69ef0
Union/UnionArray implemented, PVUnion/PVUnionArray not yet implemented; also implemented reuse of scalar/scalarArray instances in FieldCreate
2013-11-05 16:15:12 +01:00
Matej Sekoranja
c56c976a22
FieldBuilder (incl. tests)
2013-11-04 19:04:28 +01:00
Marty Kraimer
0f17bd23c7
make bitSet more comnpatible with Java implementation.
2013-10-31 06:03:51 -04:00
Marty Kraimer
db10bed951
update documentation; fix bug in executor; add typedefs to thread.h
2013-10-30 08:13:19 -04:00
Michael Davidsaver
9cd7008efe
typeCast String <-> boolean
2013-10-29 17:56:36 -04:00
Michael Davidsaver
11e91ac3fa
Merge branch 'shared-vector'
2013-10-28 17:42:11 -04:00
Michael Davidsaver
de70d90603
shared_vector: simplify slice()
...
Correctly tracks capacity when user
over-slices.
2013-08-06 11:32:34 -04:00
Michael Davidsaver
759d268af0
update testPVScalarArray
2013-07-29 15:10:04 -04:00
Michael Davidsaver
b5b6ae100d
update pvD array in tests
2013-07-25 17:30:33 -04:00
Michael Davidsaver
569bd3b681
update testSharedVector
2013-07-25 17:02:08 -04:00
Michael Davidsaver
70ae281f45
test freeze/thaw
2013-07-16 18:59:04 -04:00
Michael Davidsaver
2e3cbed520
restart testConvert
...
start with fromStringArray
2013-07-16 10:47:11 -04:00
Michael Davidsaver
cff59487ae
shared_vector freeze and thaw
2013-07-09 18:24:51 -04:00
Michael Davidsaver
cdcbfe7378
update testPVScalarArray
2013-07-09 18:24:51 -04:00
Michael Davidsaver
46feb86a99
test shared_vector_convert
2013-07-09 18:24:41 -04:00
Michael Davidsaver
d319e2ed7b
add ScalarTypeID template
...
Define a compile time mapping from
type to ScalarType enum value.
2013-07-09 11:19:46 -04:00
Andrew Johnson
d2a649f5fa
Fixed compiler warning,
2013-06-12 21:21:44 -05:00
Michael Davidsaver
cf8c6718dd
test PVStructureArray in testSerialization
2013-06-11 17:42:30 -04:00
Michael Davidsaver
b0c8249562
re-write testPVStructureArray
2013-06-11 17:42:30 -04:00
Michael Davidsaver
8cb0b1a7d6
use new PVStructureArray api
2013-06-11 17:42:30 -04:00
Michael Davidsaver
4e749cc8be
Improve shared_vector::push_back
...
push_back now allocates additional space
in powers of 2 up to 1k elements, then
in blocks of 1k elements.
2013-06-11 17:42:30 -04:00
Michael Davidsaver
be4738f59c
remove weak_vector
...
It seems that shared_ptr::use_count() does
not include weak_ptr instances. Therefore
shared_ptr::use_count()==1 (aka unique())
does *not* ensure exclusive ownership!
This breaks the assumption used by
shared_vector::make_unique() to avoid
allocating a new array in some cases.
2013-06-10 15:09:42 -04:00
Michael Davidsaver
0b89f08d09
explicit copy and assignment for shared_vector
...
Add explicit copy constructor and
assignment operator for shared_vector.
2013-06-10 12:09:29 -04:00
Michael Davidsaver
ac53153bea
shared_vector: test reference and const_reference
...
Ensure that these typedefs are present and work
for 'T' and 'const T'.
2013-06-05 16:15:49 -04:00
Michael Davidsaver
bc3187a3f6
optimize shared_vector for storing non-POD types
...
pass values by reference where appropriate.
When reallocating arrays of shared_ptr
"move" with swap() instead of operator=
to avoid ref counter inc and dec for each
element.
2013-06-03 19:31:05 -04:00
Michael Davidsaver
4294710d9e
make viewUnsafe protected
...
No longer part of the public API of PVValueArray
2013-06-03 19:31:05 -04:00
Michael Davidsaver
3b6268a4fc
add const_iterator to shared_vector
2013-05-31 09:58:52 -04:00
Michael Davidsaver
41425b3fa1
more testIntrospect
2013-05-31 09:58:52 -04:00
Michael Davidsaver
9039a10c9a
update testIntrospect with epicsUnitTest
2013-05-24 18:28:54 -04:00
Michael Davidsaver
629c8346d2
postPut in new array API
...
Call when appropriate (putFrom(), copyIn(), and replace()).
Not called by swap(), take(), reuse(), or shareData().
Users of the second set of methods are expected to call
one of the methods in the first set, or call postPut() directly.
Document when postPut is (not) called.
2013-05-23 17:51:52 -04:00
Marty Kraimer
69be072a07
added test
2013-05-17 19:33:16 -04:00
Marty Kraimer
a2ca21a1a6
changes to queue and to bitSetUtil.
2013-05-16 09:04:42 -04:00
Michael Davidsaver
572c02bf6e
update testOperators
2013-05-08 18:35:51 -04:00
Michael Davidsaver
80777b293f
rewrite testPVScalarArray
2013-05-08 18:35:51 -04:00
Michael Davidsaver
3c08834377
update testSerialization
2013-05-08 18:35:51 -04:00
Michael Davidsaver
eeae12e3d4
Convert: remove to/from*Array
2013-05-08 18:35:51 -04:00
Michael Davidsaver
992ac73068
use new API
...
make copying explicit and replace some
use of PVValueArray<T>::put and get
2013-05-08 18:35:51 -04:00
Michael Davidsaver
b137b32fc6
test shared_vector<T>
...
use epicsUnitTest
test handling of void and const void instances
2013-05-08 18:35:50 -04:00
Michael Davidsaver
d75656dad7
testTypeCast use epicsUnitTest
2013-05-01 12:41:19 -04:00
Michael Davidsaver
a6bfab2d74
replace copyScalarArray with PVScalarArray::assign
2013-04-30 18:14:04 -04:00
Michael Davidsaver
2f8c434429
add castUnsafeV
...
non-template version of castUnsafe<TO>(FROM v)).
2013-04-22 11:59:20 -04:00
Michael Davidsaver
b0c57e7ae3
test castUnsafe w/ transform()
2013-04-22 11:59:20 -04:00
Michael Davidsaver
0e57391b4d
vxWorks compatibility
2013-04-22 11:59:20 -04:00
Michael Davidsaver
d7eada7216
type casting with castUnsafe<TO>(FROM val)
2013-04-15 14:39:42 -04:00
Michael Davidsaver
c435f71592
testOperators: avoid warning
2013-04-15 14:34:45 -04:00