SOFA API  ca70b0f0
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 ()
 
T * getTarget () const
 
void unSet ()
 
bool isSet () const
 
void setTarget (T *target)
 
T & getOwner () const
 

Additional Inherited Members

Constructor details

◆ DataLink()

template<class T >
sofa::core::objectmodel::DataLink< T >::DataLink ( T &  owner)
inline

◆ ~DataLink()

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

Function details

◆ getOwner()

template<class T >
T& sofa::core::objectmodel::DataLink< T >::getOwner ( ) const
inline

◆ getTarget()

template<class T >
T* sofa::core::objectmodel::DataLink< T >::getTarget ( ) const
inline

◆ isSet()

template<class T >
bool sofa::core::objectmodel::DataLink< T >::isSet ( ) const
inline

◆ setTarget()

template<class T >
void sofa::core::objectmodel::DataLink< T >::setTarget ( T *  target)
inline

◆ unSet()

template<class T >
void sofa::core::objectmodel::DataLink< T >::unSet ( )
inline