Class PVScalarArray

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class PVScalarArray : public epics::pvData::PVArray

Base class for a scalarArray.

Subclassed by epics::pvData::detail::PVVectorStorage< T, PVScalarArray >

Public Types

typedef PVScalarArray &reference
typedef const PVScalarArray &const_reference

Public Functions

POINTER_DEFINITIONS(PVScalarArray)
virtual ~PVScalarArray()

Destructor

const ScalarArrayConstPtr getScalarArray() const

Get the introspection interface

Returns

The interface.

template<typename T>
inline void getAs(shared_vector<const T> &out) const

Fetch the current value and convert to the requested type.

A copy is made if the requested type does not match the element type. If the types do match then no copy is made.

template<typename T>
inline void putFrom(const shared_vector<const T> &inp)

Assign the given value after conversion.

A copy and element-wise conversion is performed unless the element type of the PVScalarArray matches the type of the provided data. If the types do match then a new reference to the provided data is kept.

Calls postPut()

inline void assign(const PVScalarArray &pv)

Assign the given PVScalarArray’s value.

A copy and element-wise conversion is performed unless the element type of the PVScalarArray matches the type of the provided data. If the types do match then a new reference to the provided data is kept.

inline void copy(const PVScalarArray &from)
inline void copyUnchecked(const PVScalarArray &from)

Protected Functions

virtual void _getAsVoid(shared_vector<const void>&) const = 0
virtual void _putFromVoid(const shared_vector<const void>&) = 0
explicit PVScalarArray(ScalarArrayConstPtr const &scalarArray)