cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
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)
 
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= ' ')
 
 operator value_type & (void)
 
 operator const value_type & (void) const
 
- Public Member Functions inherited from mtsGenericObjectProxyBase< _elementType >
virtual const
cmnClassServicesBase
Services (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)
 
bool SetTimestampIfAutomatic (double timestamp)
 
size_t ScalarNumber (void) const
 
bool ScalarNumberIsFixed (void) const
 
double Scalar (const size_t index) const throw (std::out_of_range)
 
std::string ScalarDescription (const size_t index, const std::string &userDescription="") const throw (std::out_of_range)
 
- 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 throw (std::out_of_range)
 
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

template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType> mtsGenericObjectProxyRef< _elementType >::BaseType
template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType>::DeRefType mtsGenericObjectProxyRef< _elementType >::DeRefType
template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType>::RefType mtsGenericObjectProxyRef< _elementType >::RefType
template<class _elementType>
typedef mtsGenericObjectProxyRef<_elementType> mtsGenericObjectProxyRef< _elementType >::ThisType
template<class _elementType>
typedef mtsGenericObjectProxyBase<_elementType>::value_type mtsGenericObjectProxyRef< _elementType >::value_type

Constructor & Destructor Documentation

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

Copy constructor.

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.

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

Member Function Documentation

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

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

Reimplemented from mtsGenericObject.

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

From stream raw.

Reimplemented from mtsGenericObject.

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

Return pointer to data

Implements mtsGenericObjectProxyBase< _elementType >.

template<class _elementType>
const value_type& mtsGenericObjectProxyRef< _elementType >::GetData ( void  ) const
inlinevirtual
template<class _elementType>
mtsGenericObjectProxyRef< _elementType >::operator const value_type & ( void  ) const
inline
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".

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

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

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".

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

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

Reimplemented from mtsGenericObject.

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.

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

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

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