Collection of information about the connected node and pin.
More...
|
class | ValueWrapper |
| Value wrapper, automatically incrementing and decrementing the data access counter. More...
|
|
|
OutputPin * | getConnectedPin () const |
| Returns a pointer to the pin which is connected to this one.
|
|
template<typename T > |
std::optional< ValueWrapper< T > > | getValue () const |
| Get the value connected on the pin if the pin is connected. Automatically increments the data access counter to prevent editing.
|
|
| IncomingLink ()=default |
| Default Constructor.
|
|
| IncomingLink (ax::NodeEditor::LinkId linkId, Node *connectedNode, ax::NodeEditor::PinId connectedPinId) |
| Constructor.
|
|
|
Node * | connectedNode |
| Pointer to the node, which is connected to this pin.
|
|
ax::NodeEditor::PinId | connectedPinId |
| Id of the pin, which is connected to this pin.
|
|
ax::NodeEditor::LinkId | linkId |
| Unique id of the link.
|
|
| Link ()=default |
| Default Constructor.
|
|
| Link (ax::NodeEditor::LinkId linkId, Node *connectedNode, ax::NodeEditor::PinId connectedPinId) |
| Constructor.
|
|
Collection of information about the connected node and pin.
◆ IncomingLink()
NAV::InputPin::IncomingLink::IncomingLink |
( |
ax::NodeEditor::LinkId | linkId, |
|
|
Node * | connectedNode, |
|
|
ax::NodeEditor::PinId | connectedPinId ) |
|
inline |
Constructor.
- Parameters
-
[in] | linkId | Unique id of the link |
[in] | connectedNode | Node connected on the other end of the link |
[in] | connectedPinId | Id of the pin, which is connected on the other end of the link |
◆ getValue()
template<typename T >
std::optional< ValueWrapper< T > > NAV::InputPin::IncomingLink::getValue |
( |
| ) |
const |
|
inline |
Get the value connected on the pin if the pin is connected. Automatically increments the data access counter to prevent editing.
- Template Parameters
-
T | Type of the connected object |
- Returns
- ValueWrapper with a const pointer to the connected data
The documentation for this struct was generated from the following file:
- /home/runner/work/INSTINCT/INSTINCT/src/internal/Node/Pin.hpp