PVData C++
8.0.4
|
Common code for PV*Array. More...
#include <pv/pvData.h>
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef ::epics::pvData::shared_vector< T > | svector |
typedef ::epics::pvData::shared_vector< const T > | const_svector |
Public Member Functions | |
virtual const_svector | view () const =0 |
Fetch a read-only view of the current array data. | |
virtual void | swap (const_svector &other)=0 |
virtual void | replace (const const_svector &next)=0 |
svector | reuse () |
Protected Member Functions | |
template<typename A > | |
PVVectorStorage (A a) | |
Common code for PV*Array.
|
pure virtual |
Discard current contents and replaced with the provided. Fails for Immutable arrays calls postPut()
Implemented in epics::pvData::PVValueArray< PVUnionPtr >, epics::pvData::PVValueArray< PVStructurePtr >, and epics::pvData::PVValueArray< T >.
|
inline |
|
pure virtual |
Exchange our contents for the provided.
std::logic_error | for Immutable arrays. |
Callers must ensure that postPut() is called after the last swap() operation.
Before you call this directly, consider using the reuse(), or replace() methods.
Implemented in epics::pvData::PVValueArray< PVUnionPtr >, epics::pvData::PVValueArray< PVStructurePtr >, and epics::pvData::PVValueArray< T >.