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

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 |
Public Member Functions inherited from sofa::core::objectmodel::AbstractDataLink | |
| const BaseData & | getOwner () const |
| void | setTarget (BaseData *target) |
| Change the targeted DataField and set the path to the empty string. More... | |
| BaseData * | getTarget () const |
| Get the targeted DataField. More... | |
| bool | hasTarget () const |
| Returns true if there is a target. More... | |
| const std::string | getPath () const |
| Get the path (is any) More... | |
| void | setPath (const std::string &path) |
| Set the path, try to resolve it, on success set the DataField. More... | |
| bool | hasPath () const |
| Returns true if the path is set (and thus getTarget() == nullptr) More... | |
| bool | resolvePathAndSetTarget () |
| BaseData * | resolvePathAndGetTarget () |
Additional Inherited Members | |
Protected Attributes inherited from sofa::core::objectmodel::AbstractDataLink | |
| std::string | m_path {""} |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |