Public Types | Public Member Functions | Private Attributes | List of all members
UpdatedReferenceDataSource< T > Class Template Reference

#include <datasource_fixture.hpp>

Inheritance diagram for UpdatedReferenceDataSource< T >:
Inheritance graph
[legend]

Public Types

typedef boost::intrusive_ptr< UpdatedReferenceDataSource< T > > shared_ptr
 

Public Member Functions

virtual UpdatedReferenceDataSource< T > * clone () const
 
virtual UpdatedReferenceDataSource< T > * copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const
 
DataSource< T >::result_t get () const
 
DataSource< T >::const_reference_t rvalue () const
 
void updated ()
 
 UpdatedReferenceDataSource (typename AssignableDataSource< T >::reference_t ref)
 
DataSource< T >::result_t value () const
 
 ~UpdatedReferenceDataSource ()
 

Private Attributes

DataSource< T >::value_t mcopy
 
AssignableDataSource< T >::reference_t mref
 

Detailed Description

template<typename T>
class UpdatedReferenceDataSource< T >

Only for unit tests: only returns new value in get() after updated() has been called. Use this to test the calling of updated() after a set().

Definition at line 200 of file datasource_fixture.hpp.

Member Typedef Documentation

template<typename T>
typedef boost::intrusive_ptr<UpdatedReferenceDataSource<T> > UpdatedReferenceDataSource< T >::shared_ptr

Definition at line 212 of file datasource_fixture.hpp.

Constructor & Destructor Documentation

template<typename T>
UpdatedReferenceDataSource< T >::~UpdatedReferenceDataSource ( )
inline

Use shared_ptr.

Definition at line 210 of file datasource_fixture.hpp.

template<typename T>
UpdatedReferenceDataSource< T >::UpdatedReferenceDataSource ( typename AssignableDataSource< T >::reference_t  ref)
inline

Definition at line 214 of file datasource_fixture.hpp.

Member Function Documentation

template<typename T>
virtual UpdatedReferenceDataSource<T>* UpdatedReferenceDataSource< T >::clone ( ) const
inlinevirtual

Definition at line 233 of file datasource_fixture.hpp.

template<typename T>
virtual UpdatedReferenceDataSource<T>* UpdatedReferenceDataSource< T >::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  alreadyCloned) const
inlinevirtual

Definition at line 235 of file datasource_fixture.hpp.

template<typename T>
DataSource<T>::result_t UpdatedReferenceDataSource< T >::get ( ) const
inline

Definition at line 216 of file datasource_fixture.hpp.

template<typename T>
DataSource<T>::const_reference_t UpdatedReferenceDataSource< T >::rvalue ( ) const
inline

Definition at line 226 of file datasource_fixture.hpp.

template<typename T>
void UpdatedReferenceDataSource< T >::updated ( )
inline

Definition at line 231 of file datasource_fixture.hpp.

template<typename T>
DataSource<T>::result_t UpdatedReferenceDataSource< T >::value ( ) const
inline

Definition at line 221 of file datasource_fixture.hpp.

Member Data Documentation

template<typename T>
DataSource<T>::value_t UpdatedReferenceDataSource< T >::mcopy
private

Definition at line 205 of file datasource_fixture.hpp.

template<typename T>
AssignableDataSource<T>::reference_t UpdatedReferenceDataSource< T >::mref
private

Definition at line 204 of file datasource_fixture.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:41