cisst-saw
Loading...
Searching...
No Matches
mtsGenericObjectProxyRef< _elementType > Class Template Reference

#include <mtsGenericObjectProxy.h>

Inheritance diagram for mtsGenericObjectProxyRef< _elementType >:
mtsGenericObjectProxyBase< _elementType > mtsGenericObject cmnGenericObject

Public Types

typedef mtsGenericObjectProxyRef< _elementType > ThisType
typedef mtsGenericObjectProxyBase< _elementType > BaseType
typedef mtsGenericObjectProxyBase< _elementType >::value_type value_type
typedef mtsGenericObjectProxyBase< _elementType >::DeRefType DeRefType
typedef mtsGenericObjectProxyBase< _elementType >::RefType RefType
Public Types inherited from mtsGenericObjectProxyBase< _elementType >
enum  { HAS_DYNAMIC_CREATION = true }
enum  { InitialLoD = CMN_LOG_ALLOW_DEFAULT }
typedef mtsGenericObjectProxyBase< _elementType > ThisType
typedef mtsGenericObject BaseType
typedef mtsGenericObjectProxy< _elementType > DeRefType
typedef mtsGenericObjectProxyRef< _elementType > RefType
typedef _elementType value_type

Public Member Functions

 mtsGenericObjectProxyRef (const ThisType &other)
 mtsGenericObjectProxyRef (value_type &data)
 mtsGenericObjectProxyRef (const value_type &data)
 ~mtsGenericObjectProxyRef (void)
value_typeGetData (void)
const value_typeGetData (void) const
ThisTypeoperator= (const BaseType &data)
ThisTypeoperator= (value_type data)
 operator value_type & (void)
 operator const value_type & (void) const
void SerializeRaw (std::ostream &outputStream) const
void DeSerializeRaw (std::istream &inputStream)
virtual void ToStream (std::ostream &outputStream) const
virtual void ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const
virtual bool FromStreamRaw (std::istream &inputStream, const char delimiter=' ')
Public Member Functions inherited from mtsGenericObjectProxyBase< _elementType >
virtual const cmnClassServicesBaseServices (void) const
 mtsGenericObjectProxyBase (void)
 mtsGenericObjectProxyBase (const ThisType &other)
 ~mtsGenericObjectProxyBase (void)
ThisTypeoperator= (const ThisType &data)
virtual void Assign (const ThisType &other)
Public Member Functions inherited from mtsGenericObject
 mtsGenericObject (void)
 mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid)
 mtsGenericObject (const mtsGenericObject &other)
virtual ~mtsGenericObject (void)
mtsGenericObjectoperator= (const mtsGenericObject &other)
bool SetTimestampIfAutomatic (double timestamp)
size_t ScalarNumber (void) const
bool ScalarNumberIsFixed (void) const
Public Member Functions inherited from cmnGenericObject
virtual ~cmnGenericObject (void)
bool ReconstructFrom (const cmnGenericObject &other)
std::string ToString (void) const
virtual cmnLogger::StreamBufTypeGetLogMultiplexer (void) const
virtual double Scalar (const size_t CMN_UNUSED(index)) const CISST_THROW(std
virtual std::string ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const

Public Attributes

value_typerData

Additional Inherited Members

Static Public Member Functions inherited from mtsGenericObjectProxyBase< _elementType >
static cmnClassServicesBaseClassServices (void)

Member Typedef Documentation

◆ BaseType

template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType> mtsGenericObjectProxyRef< _elementType >::BaseType

◆ DeRefType

template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType>::DeRefType mtsGenericObjectProxyRef< _elementType >::DeRefType

◆ RefType

template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType>::RefType mtsGenericObjectProxyRef< _elementType >::RefType

◆ ThisType

template<class _elementType>
typedef mtsGenericObjectProxyRef<_elementType> mtsGenericObjectProxyRef< _elementType >::ThisType

◆ value_type

template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType>::value_type mtsGenericObjectProxyRef< _elementType >::value_type

Constructor & Destructor Documentation

◆ mtsGenericObjectProxyRef() [1/3]

template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::mtsGenericObjectProxyRef ( const ThisType & other)
inline

Copy constructor.

◆ mtsGenericObjectProxyRef() [2/3]

template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::mtsGenericObjectProxyRef ( value_type & data)
inline

Conversion constructor. This allows to construct the proxy object using an object of the actual type.

◆ mtsGenericObjectProxyRef() [3/3]

template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::mtsGenericObjectProxyRef ( const value_type & data)
inline

◆ ~mtsGenericObjectProxyRef()

template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::~mtsGenericObjectProxyRef ( void )
inline

Member Function Documentation

◆ DeSerializeRaw()

template<class _elementType>
void mtsGenericObjectProxyRef< _elementType >::DeSerializeRaw ( std::istream & inputStream)
inlinevirtual

DeSerialization. Relies on the specialization, if any, of cmnDeSerializeRaw.

Reimplemented from mtsGenericObject.

◆ FromStreamRaw()

template<class _elementType>
virtual bool mtsGenericObjectProxyRef< _elementType >::FromStreamRaw ( std::istream & inputStream,
const char delimiter = ' ' )
inlinevirtual

From stream raw.

Reimplemented from mtsGenericObject.

◆ GetData() [1/2]

template<class _elementType>
value_type & mtsGenericObjectProxyRef< _elementType >::GetData ( void )
inlinevirtual

Return pointer to data

Implements mtsGenericObjectProxyBase< _elementType >.

◆ GetData() [2/2]

template<class _elementType>
const value_type & mtsGenericObjectProxyRef< _elementType >::GetData ( void ) const
inlinevirtual

◆ operator const value_type &()

template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::operator const value_type & ( void ) const
inline

◆ operator value_type &()

template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::operator value_type & ( void )
inline

Cast operator. This allows to assign to an object of the actual type without explicitly referencing the public data member "Data".

◆ operator=() [1/2]

template<class _elementType>
ThisType & mtsGenericObjectProxyRef< _elementType >::operator= ( const BaseType & data)
inline

Conversion assignment, from base type (i.e., Proxy or ProxyRef) to ProxyRef.

◆ operator=() [2/2]

template<class _elementType>
ThisType & mtsGenericObjectProxyRef< _elementType >::operator= ( value_type data)
inline

Conversion assignment. This allows to assign from an object of the actual type without explicitly referencing the public data member "Data".

◆ SerializeRaw()

template<class _elementType>
void mtsGenericObjectProxyRef< _elementType >::SerializeRaw ( std::ostream & outputStream) const
inlinevirtual

Serialization. Relies on the specialization, if any, of cmnSerializeRaw.

Reimplemented from mtsGenericObject.

◆ ToStream()

template<class _elementType>
virtual void mtsGenericObjectProxyRef< _elementType >::ToStream ( std::ostream & outputStream) const
inlinevirtual

To stream method. Uses the default << operator as defined for the actual type.

Reimplemented from mtsGenericObject.

◆ ToStreamRaw()

template<class _elementType>
virtual void mtsGenericObjectProxyRef< _elementType >::ToStreamRaw ( std::ostream & outputStream,
const char delimiter = ' ',
bool headerOnly = false,
const std::string & headerPrefix = "" ) const
inlinevirtual

To stream raw data.

Reimplemented from mtsGenericObject.

Member Data Documentation

◆ rData

template<class _elementType>
value_type& mtsGenericObjectProxyRef< _elementType >::rData

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