Public Member Functions | Private Types | Private Attributes
RTT::corba::ValueDataSourceProxy< T > Class Template Reference

#include <DataSourceProxy.hpp>

Inheritance diagram for RTT::corba::ValueDataSourceProxy< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual
internal::AssignableDataSource
< T > * 
clone () const
virtual
internal::AssignableDataSource
< T > * 
copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
virtual internal::DataSource
< T >::result_t 
get () const
internal::AssignableDataSource
< T >::const_reference_t 
rvalue () const
virtual void set (typename internal::AssignableDataSource< T >::param_t t)
virtual
internal::AssignableDataSource
< T >::reference_t 
set ()
virtual void updated ()
internal::DataSource< T >::result_t value () const
 ValueDataSourceProxy (corba::CService_ptr serv, const std::string &name, bool isproperty)

Private Types

typedef
internal::AssignableDataSource
< T >::value_t 
value_t

Private Attributes

CorbaTypeTransporterctp
bool misproperty
const std::string mname
corba::CService_var mserv
internal::AssignableDataSource
< value_t >::shared_ptr 
storage

Detailed Description

template<class T>
class RTT::corba::ValueDataSourceProxy< T >

Mirrors a remote assignable value datasource.

Definition at line 141 of file DataSourceProxy.hpp.


Member Typedef Documentation

template<class T >
typedef internal::AssignableDataSource<T>::value_t RTT::corba::ValueDataSourceProxy< T >::value_t [private]

The bare type of T is extracted into value_t.

Reimplemented from RTT::internal::AssignableDataSource< T >.

Definition at line 144 of file DataSourceProxy.hpp.


Constructor & Destructor Documentation

template<class T >
RTT::corba::ValueDataSourceProxy< T >::ValueDataSourceProxy ( corba::CService_ptr  serv,
const std::string &  name,
bool  isproperty 
) [inline]

Definition at line 153 of file DataSourceProxy.hpp.


Member Function Documentation

template<class T >
virtual internal::AssignableDataSource<T>* RTT::corba::ValueDataSourceProxy< T >::clone ( ) const [inline, virtual]

Return a shallow clone of this DataSource. This method returns a duplicate of this instance which re-uses the DataSources this internal::DataSource holds reference to. The clone() function is thus a non-deep copy.

Implements RTT::internal::AssignableDataSource< T >.

Definition at line 213 of file DataSourceProxy.hpp.

template<class T >
virtual internal::AssignableDataSource<T>* RTT::corba::ValueDataSourceProxy< T >::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  alreadyCloned) const [inline, virtual]

Implements RTT::internal::AssignableDataSource< T >.

Definition at line 217 of file DataSourceProxy.hpp.

template<class T >
virtual internal::DataSource<T>::result_t RTT::corba::ValueDataSourceProxy< T >::get ( ) const [inline, virtual]

Return the data as type T.

Implements RTT::internal::DataSource< T >.

Definition at line 177 of file DataSourceProxy.hpp.

template<class T >
internal::AssignableDataSource<T>::const_reference_t RTT::corba::ValueDataSourceProxy< T >::rvalue ( ) const [inline, virtual]

Get a const reference to the value of this DataSource. You must call evaluate() prior to calling this function in order to get the most recent value of this attribute.

Note:
Getting a reference to an internal data structure is not thread-safe.

Implements RTT::internal::DataSource< T >.

Definition at line 172 of file DataSourceProxy.hpp.

template<class T >
virtual void RTT::corba::ValueDataSourceProxy< T >::set ( typename internal::AssignableDataSource< T >::param_t  t) [inline, virtual]

Definition at line 191 of file DataSourceProxy.hpp.

template<class T >
virtual internal::AssignableDataSource<T>::reference_t RTT::corba::ValueDataSourceProxy< T >::set ( ) [inline, virtual]

Get a reference to the value of this DataSource. Getting a reference to an internal data structure is not thread-safe.

Implements RTT::internal::AssignableDataSource< T >.

Definition at line 203 of file DataSourceProxy.hpp.

template<class T >
virtual void RTT::corba::ValueDataSourceProxy< T >::updated ( ) [inline, virtual]

In case the internal::DataSource returns a 'reference' type, call this method to notify it that the data was updated in the course of an invocation of get().

Reimplemented from RTT::base::DataSourceBase.

Definition at line 208 of file DataSourceProxy.hpp.

template<class T >
internal::DataSource<T>::result_t RTT::corba::ValueDataSourceProxy< T >::value ( ) const [inline, virtual]

Return the result of the last evaluate() function. You must call evaluate() prior to calling this function in order to get the most recent value of this attribute.

Implements RTT::internal::DataSource< T >.

Definition at line 168 of file DataSourceProxy.hpp.


Member Data Documentation

template<class T >
CorbaTypeTransporter* RTT::corba::ValueDataSourceProxy< T >::ctp [private]

Definition at line 149 of file DataSourceProxy.hpp.

template<class T >
bool RTT::corba::ValueDataSourceProxy< T >::misproperty [private]

Definition at line 147 of file DataSourceProxy.hpp.

template<class T >
const std::string RTT::corba::ValueDataSourceProxy< T >::mname [private]

Definition at line 146 of file DataSourceProxy.hpp.

template<class T >
corba::CService_var RTT::corba::ValueDataSourceProxy< T >::mserv [private]

Definition at line 145 of file DataSourceProxy.hpp.

Definition at line 148 of file DataSourceProxy.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:16:23