PVData C++
8.0.6
|
Base class for a scalarArray. More...
#include <pv/pvData.h>
Public Types | |
typedef std::tr1::shared_ptr < PVScalarArray > | shared_pointer |
typedef std::tr1::shared_ptr < const PVScalarArray > | const_shared_pointer |
typedef std::tr1::weak_ptr < PVScalarArray > | weak_pointer |
typedef std::tr1::weak_ptr < const PVScalarArray > | const_weak_pointer |
typedef PVScalarArray & | reference |
typedef const PVScalarArray & | const_reference |
Public Types inherited from epics::pvData::PVArray | |
typedef std::tr1::shared_ptr < PVArray > | shared_pointer |
typedef std::tr1::shared_ptr < const PVArray > | const_shared_pointer |
typedef std::tr1::weak_ptr < PVArray > | weak_pointer |
typedef std::tr1::weak_ptr < const PVArray > | const_weak_pointer |
Public Types inherited from epics::pvData::PVField | |
enum | { isPVField =1 } |
typedef std::tr1::shared_ptr < PVField > | shared_pointer |
typedef std::tr1::shared_ptr < const PVField > | const_shared_pointer |
typedef std::tr1::weak_ptr < PVField > | weak_pointer |
typedef std::tr1::weak_ptr < const PVField > | const_weak_pointer |
Public Member Functions | |
virtual | ~PVScalarArray () |
const ScalarArrayConstPtr | getScalarArray () const |
template<typename T > | |
void | getAs (shared_vector< const T > &out) const |
template<typename T > | |
void | putFrom (const shared_vector< const T > &inp) |
void | assign (const PVScalarArray &pv) |
void | copy (const PVScalarArray &from) |
void | copyUnchecked (const PVScalarArray &from) |
Public Member Functions inherited from epics::pvData::PVArray | |
virtual | ~PVArray () |
virtual ArrayConstPtr | getArray () const =0 |
virtual void | setImmutable () |
virtual std::size_t | getLength () const =0 |
virtual void | setLength (std::size_t length)=0 |
virtual std::size_t | getCapacity () const =0 |
bool | isCapacityMutable () const |
void | setCapacityMutable (bool isMutable) |
virtual void | setCapacity (std::size_t capacity)=0 |
virtual std::ostream & | dumpValue (std::ostream &o, std::size_t index) const =0 |
Public Member Functions inherited from epics::pvData::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) |
virtual std::ostream & | dumpValue (std::ostream &o) const =0 |
void | copy (const PVField &from) |
void | copyUnchecked (const PVField &from) |
Public Member Functions inherited from epics::pvData::Serializable | |
virtual | ~Serializable () |
virtual void | serialize (ByteBuffer *buffer, SerializableControl *flusher) const =0 |
virtual void | deserialize (ByteBuffer *buffer, DeserializableControl *flusher)=0 |
Public Member Functions inherited from epics::pvData::SerializableArray | |
virtual | ~SerializableArray () |
virtual void | serialize (ByteBuffer *buffer, SerializableControl *flusher, std::size_t offset, std::size_t count) const =0 |
Protected Member Functions | |
virtual void | _getAsVoid (shared_vector< const void > &) const =0 |
virtual void | _putFromVoid (const shared_vector< const void > &)=0 |
PVScalarArray (ScalarArrayConstPtr const &scalarArray) | |
Protected Member Functions inherited from epics::pvData::PVArray | |
PVArray (FieldConstPtr const &field) | |
void | checkLength (size_t length) const |
Protected Member Functions inherited from epics::pvData::PVField | |
PVField::shared_pointer | getPtrSelf () |
PVField (FieldConstPtr field) | |
void | setParentAndName (PVStructure *parent, std::string const &fieldName) |
Friends | |
class | PVDataCreate |
Additional Inherited Members | |
Static Public Attributes inherited from epics::pvData::PVField | |
static size_t | num_instances |
|
virtual |
Destructor
|
inline |
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 |
const ScalarArrayConstPtr epics::pvData::PVScalarArray::getScalarArray | ( | ) | const |
Get the introspection interface
|
inline |
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()