PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
epics::pvData::PVScalarValue< T > Class Template Reference

Class that holds the data for each possible scalar type. More...

#include <pv/pvData.h>

Inheritance diagram for epics::pvData::PVScalarValue< T >:
Inheritance graph
[legend]
Collaboration diagram for epics::pvData::PVScalarValue< T >:
Collaboration graph
[legend]

Public Types

typedef std::tr1::shared_ptr
< PVScalarValue
shared_pointer
 
typedef std::tr1::shared_ptr
< const PVScalarValue
const_shared_pointer
 
typedef std::tr1::weak_ptr
< PVScalarValue
weak_pointer
 
typedef std::tr1::weak_ptr
< const PVScalarValue
const_weak_pointer
 
typedef T value_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
- Public Types inherited from epics::pvData::PVScalar
typedef std::tr1::shared_ptr
< PVScalar
shared_pointer
 
typedef std::tr1::shared_ptr
< const PVScalar
const_shared_pointer
 
typedef std::tr1::weak_ptr
< PVScalar
weak_pointer
 
typedef std::tr1::weak_ptr
< const PVScalar
const_weak_pointer
 
typedef PVScalarreference
 
typedef const PVScalarconst_reference
 
- 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 ~PVScalarValue ()
 
storage_t::arg_type get () const
 
void put (typename storage_t::arg_type v)
 
virtual std::ostreamdumpValue (std::ostream &o) const
 
virtual void operator>>= (T &value) const
 
virtual void operator<<= (typename storage_t::arg_type value)
 
template<typename T1 >
T1 getAs () const
 
template<typename T1 >
void putFrom (typename detail::ScalarStorageOps< T1 >::arg_type val)
 
void putFrom (const AnyScalar &v)
 
virtual void assign (const PVScalar &scalar)
 
virtual void copy (const PVScalar &from)
 
virtual void copyUnchecked (const PVScalar &from)
 
virtual void serialize (ByteBuffer *pbuffer, SerializableControl *pflusher) const
 
virtual void deserialize (ByteBuffer *pbuffer, DeserializableControl *pflusher)
 
virtual void getAs (AnyScalar &v) const
 
virtual void putFrom (const void *src, ScalarType stype)
 Convert and assign.
 
template<>
std::ostreamdumpValue (std::ostream &o) const
 
template<>
std::ostreamdumpValue (std::ostream &o) const
 
template<>
std::ostreamdumpValue (std::ostream &o) const
 
- Public Member Functions inherited from epics::pvData::PVScalar
virtual ~PVScalar ()
 
const ScalarConstPtr getScalar () const
 
template<typename T >
getAs () const
 
template<typename T >
void putFrom (T val)
 
void putFrom (const AnyScalar &v)
 
- Public Member Functions inherited from epics::pvData::PVField
virtual ~PVField ()
 
const std::stringgetFieldName () const
 
std::string getFullName () const
 
std::size_t getFieldOffset () const
 
std::size_t getNextFieldOffset () const
 
std::size_t getNumberFields () const
 
bool isImmutable () const
 
virtual void setImmutable ()
 
const FieldConstPtrgetField () const
 
PVStructuregetParent ()
 
const PVStructuregetParent () const
 
void postPut ()
 
void setPostHandler (PostHandlerPtr const &postHandler)
 
virtual bool equals (PVField &pv)
 
void copy (const PVField &from)
 
void copyUnchecked (const PVField &from)
 
- Public Member Functions inherited from epics::pvData::Serializable
virtual ~Serializable ()
 

Static Public Attributes

static const ScalarType typeCode
 
- Static Public Attributes inherited from epics::pvData::PVField
static size_t num_instances
 

Protected Member Functions

 PVScalarValue (ScalarConstPtr const &scalar)
 
virtual void getAs (void *result, ScalarType rtype) const
 
- Protected Member Functions inherited from epics::pvData::PVScalar
 PVScalar (ScalarConstPtr const &scalar)
 
- Protected Member Functions inherited from epics::pvData::PVField
PVField::shared_pointer getPtrSelf ()
 
 PVField (FieldConstPtr field)
 
void setParentAndName (PVStructure *parent, std::string const &fieldName)
 

Protected Attributes

storage_t storage
 

Friends

class PVDataCreate
 

Detailed Description

template<typename T>
class epics::pvData::PVScalarValue< T >

Class that holds the data for each possible scalar type.

Definition at line 54 of file pvData.h.

Constructor & Destructor Documentation

template<typename T>
virtual epics::pvData::PVScalarValue< T >::~PVScalarValue ( )
virtual

Destructor

Member Function Documentation

template<typename T>
virtual void epics::pvData::PVScalarValue< T >::deserialize ( ByteBuffer buffer,
DeserializableControl flusher 
)
virtual

Deserialize buffer.

Parameters
bufferserialization buffer.
flusherdeserialization control.

Implements epics::pvData::Serializable.

template<typename T>
virtual std::ostream& epics::pvData::PVScalarValue< T >::dumpValue ( std::ostream o) const
virtual

Puts the PVField raw value to the stream.

Parameters
ooutput stream.
Returns
The output stream.

Implements epics::pvData::PVField.

Reimplemented in epics::pvData::PVString.

template<>
std::ostream & epics::pvData::PVScalarValue< int8 >::dumpValue ( std::ostream o) const
inlinevirtual

Puts the PVField raw value to the stream.

Parameters
ooutput stream.
Returns
The output stream.

Implements epics::pvData::PVField.

Definition at line 473 of file pvData.h.

template<>
std::ostream & epics::pvData::PVScalarValue< uint8 >::dumpValue ( std::ostream o) const
inlinevirtual

Puts the PVField raw value to the stream.

Parameters
ooutput stream.
Returns
The output stream.

Implements epics::pvData::PVField.

Definition at line 479 of file pvData.h.

template<>
std::ostream & epics::pvData::PVScalarValue< boolean >::dumpValue ( std::ostream o) const
inlinevirtual

Puts the PVField raw value to the stream.

Parameters
ooutput stream.
Returns
The output stream.

Implements epics::pvData::PVField.

Definition at line 485 of file pvData.h.

template<typename T>
storage_t::arg_type epics::pvData::PVScalarValue< T >::get ( ) const
inline

Get the value.

Returns
The value.

Definition at line 396 of file pvData.h.

template<typename T>
void epics::pvData::PVScalarValue< T >::put ( typename storage_t::arg_type  v)
inline

Put a new value into the PVScalar.

Parameters
valueThe value.

Definition at line 401 of file pvData.h.

template<typename T>
virtual void epics::pvData::PVScalarValue< T >::serialize ( ByteBuffer buffer,
SerializableControl flusher 
) const
virtual

Serialize field into given buffer.

Parameters
bufferserialization buffer.
flusherflush interface.

Implements epics::pvData::Serializable.

Reimplemented in epics::pvData::PVString.


The documentation for this class was generated from the following file: