SOFA API  1e111313
Open source framework for multi-physics simuation
sofa::core::objectmodel::DataLink< T > Class Template Referencefinal

#include <DataLink.h>

DataLink stores a connection between two object of type Data<XXX> The class is templated by the Data type to connect. The class implements the AbstractDataLink interface. More...

Inheritance diagram for sofa::core::objectmodel::DataLink< T >:

Detailed Description

template<class T>
class sofa::core::objectmodel::DataLink< T >

DataLink stores a connection between two object of type Data<XXX> The class is templated by the Data type to connect. The class implements the AbstractDataLink interface.

Public Member Functions

 DataLink (T &owner)
 
virtual ~DataLink ()
 
TgetTarget () const
 
void unSet ()
 
bool isSet () const
 
void setTarget (T *target)
 
TgetOwner () const
 

Additional Inherited Members

Constructor details

template<class T>
sofa::core::objectmodel::DataLink< T >::DataLink ( T owner)
inline
template<class T>
virtual sofa::core::objectmodel::DataLink< T >::~DataLink ( )
inlinevirtual

Function details

template<class T>
T& sofa::core::objectmodel::DataLink< T >::getOwner ( ) const
inline
template<class T>
T* sofa::core::objectmodel::DataLink< T >::getTarget ( ) const
inline
template<class T>
bool sofa::core::objectmodel::DataLink< T >::isSet ( ) const
inline
template<class T>
void sofa::core::objectmodel::DataLink< T >::setTarget ( T target)
inline
template<class T>
void sofa::core::objectmodel::DataLink< T >::unSet ( )
inline