![]() |
This is Unofficial EPICS BASE Doxygen Site
|
Data class for a unionArray. More...
#include "pvData.h"
Public Types | |
typedef PVUnionPtr | value_type |
typedef PVUnionPtr * | pointer |
typedef const PVUnionPtr * | const_pointer |
typedef PVUnionArray & | reference |
typedef const PVUnionArray & | const_reference |
typedef ::epics::pvData::shared_vector< PVUnionPtr > | svector |
typedef ::epics::pvData::shared_vector< const PVUnionPtr > | const_svector |
![]() | |
typedef PVUnionPtr | value_type |
typedef PVUnionPtr * | pointer |
typedef const PVUnionPtr * | const_pointer |
typedef ::epics::pvData::shared_vector< PVUnionPtr > | svector |
typedef ::epics::pvData::shared_vector< const PVUnionPtr > | const_svector |
![]() | |
enum | { isPVField =1 } |
Public Member Functions | |
POINTER_DEFINITIONS (PVUnionArray) | |
virtual | ~PVValueArray () |
virtual ArrayConstPtr | getArray () const OVERRIDE FINAL |
virtual size_t | getLength () const OVERRIDE FINAL |
virtual size_t | getCapacity () const OVERRIDE FINAL |
virtual void | setCapacity (size_t capacity) OVERRIDE FINAL |
virtual void | setLength (std::size_t length) OVERRIDE FINAL |
UnionArrayConstPtr | getUnionArray () const |
std::size_t | append (std::size_t number) |
bool | remove (std::size_t offset, std::size_t number) |
void | compress () |
virtual const_svector | view () const OVERRIDE |
Fetch a read-only view of the current array data. More... | |
virtual void | swap (const_svector &other) OVERRIDE |
virtual void | replace (const const_svector &other) OVERRIDE FINAL |
virtual void | serialize (ByteBuffer *pbuffer, SerializableControl *pflusher) const OVERRIDE FINAL |
virtual void | deserialize (ByteBuffer *buffer, DeserializableControl *pflusher) OVERRIDE FINAL |
virtual void | serialize (ByteBuffer *pbuffer, SerializableControl *pflusher, std::size_t offset, std::size_t count) const OVERRIDE FINAL |
virtual std::ostream & | dumpValue (std::ostream &o) const OVERRIDE FINAL |
virtual std::ostream & | dumpValue (std::ostream &o, std::size_t index) const OVERRIDE FINAL |
void | copy (const PVUnionArray &from) |
void | copyUnchecked (const PVUnionArray &from) |
![]() | |
virtual | ~PVVectorStorage () |
svector | reuse () |
![]() | |
POINTER_DEFINITIONS (PVArray) | |
virtual | ~PVArray () |
virtual void | setImmutable () OVERRIDE |
bool | isCapacityMutable () const |
void | setCapacityMutable (bool isMutable) |
virtual void | setCapacity (std::size_t capacity)=0 |
![]() | |
POINTER_DEFINITIONS (PVField) | |
virtual | ~PVField () |
const std::string & | getFieldName () const |
std::string | getFullName () const |
std::size_t | getFieldOffset () const |
std::size_t | getNextFieldOffset () const |
std::size_t | getNumberFields () const |
bool | isImmutable () const |
const FieldConstPtr & | getField () const |
PVStructure * | getParent () |
const PVStructure * | getParent () const |
void | postPut () |
void | setPostHandler (PostHandlerPtr const &postHandler) |
virtual bool | equals (PVField &pv) |
void | copy (const PVField &from) |
void | copyUnchecked (const PVField &from) |
![]() | |
virtual | ~Serializable () |
![]() | |
virtual | ~SerializableArray () |
Protected Member Functions | |
PVValueArray (UnionArrayConstPtr const &unionArray) | |
![]() | |
PVVectorStorage (A a) | |
![]() | |
PVArray (FieldConstPtr const &field) | |
void | checkLength (size_t length) const |
![]() | |
PVField::shared_pointer | getPtrSelf () |
PVField (FieldConstPtr field) | |
void | setParentAndName (PVStructure *parent, std::string const &fieldName) |
Friends | |
class | PVDataCreate |
Additional Inherited Members | |
![]() | |
static size_t | num_instances |
Data class for a unionArray.
typedef const PVUnionPtr* epics::pvData::PVValueArray< PVUnionPtr >::const_pointer |
typedef const PVUnionArray& epics::pvData::PVValueArray< PVUnionPtr >::const_reference |
typedef ::epics::pvData::shared_vector<const PVUnionPtr> epics::pvData::PVValueArray< PVUnionPtr >::const_svector |
typedef PVUnionPtr* epics::pvData::PVValueArray< PVUnionPtr >::pointer |
typedef PVUnionArray& epics::pvData::PVValueArray< PVUnionPtr >::reference |
typedef PVUnionPtr epics::pvData::PVValueArray< PVUnionPtr >::value_type |
|
inlinevirtual |
|
explicitprotected |
Definition at line 203 of file PVDataCreateFactory.cpp.
std::size_t epics::pvData::PVValueArray< PVUnionPtr >::append | ( | std::size_t | number | ) |
Append new elements to the end of the array.
number | The number of elements to add. |
void epics::pvData::PVUnionArray::compress | ( | ) |
Compress. This removes all null elements from the array.
Definition at line 69 of file PVUnionArray.cpp.
void epics::pvData::PVUnionArray::copy | ( | const PVUnionArray & | from | ) |
Definition at line 242 of file PVUnionArray.cpp.
void epics::pvData::PVUnionArray::copyUnchecked | ( | const PVUnionArray & | from | ) |
Definition at line 253 of file PVUnionArray.cpp.
|
virtual |
Deserialize buffer.
buffer | serialization buffer. |
flusher | deserialization control. |
Implements epics::pvData::Serializable.
Definition at line 158 of file PVUnionArray.cpp.
|
virtual |
Puts the PVField raw value to the stream.
o | output stream. |
Implements epics::pvData::PVField.
Definition at line 214 of file PVUnionArray.cpp.
|
virtual |
Implements epics::pvData::PVArray.
Definition at line 229 of file PVUnionArray.cpp.
|
inlinevirtual |
Get the introspection interface
Implements epics::pvData::PVArray.
Definition at line 1354 of file pvData.h.
|
inlinevirtual |
Get the array capacity.
Implements epics::pvData::PVArray.
Definition at line 1360 of file pvData.h.
|
inlinevirtual |
Get the array length.
Implements epics::pvData::PVArray.
Definition at line 1359 of file pvData.h.
|
inline |
Get the introspection interface
Definition at line 1377 of file pvData.h.
epics::pvData::PVValueArray< PVUnionPtr >::POINTER_DEFINITIONS | ( | PVUnionArray | ) |
bool epics::pvData::PVValueArray< PVUnionPtr >::remove | ( | std::size_t | offset, |
std::size_t | number | ||
) |
Remove elements from the array.
offset | The offset of the first element to remove. |
number | The number of elements to remove. |
|
inlinevirtual |
Discard current contents and replaced with the provided. Fails for Immutable arrays calls postPut()
Implements epics::pvData::detail::PVVectorStorage< PVUnionPtr, PVArray >.
Definition at line 1398 of file pvData.h.
|
virtual |
Serialize field into given buffer.
buffer | serialization buffer. |
flusher | flush interface. |
Implements epics::pvData::Serializable.
Definition at line 153 of file PVUnionArray.cpp.
|
virtual |
Serialize field into given buffer.
buffer | serialization buffer. |
flusher | flush interface. |
offset | offset in elements. |
count | number of elements |
Implements epics::pvData::SerializableArray.
|
virtual |
Set the array capacity.
capacity | The length. |
Definition at line 105 of file PVUnionArray.cpp.
|
virtual |
|
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.
Implements epics::pvData::detail::PVVectorStorage< PVUnionPtr, PVArray >.
Definition at line 143 of file PVUnionArray.cpp.
|
inlinevirtual |
Fetch a read-only view of the current array data.
Implements epics::pvData::detail::PVVectorStorage< PVUnionPtr, PVArray >.
Definition at line 1396 of file pvData.h.
|
friend |