0.2.0
Loading...
Searching...
No Matches
NAV::InputPin::IncomingLink Struct Reference

Collection of information about the connected node and pin. More...

Classes

class  ValueWrapper
 Value wrapper, automatically incrementing and decrementing the data access counter. More...
 

Public Member Functions

OutputPingetConnectedPin () 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.
 

Additional Inherited Members

Detailed Description

Collection of information about the connected node and pin.

Constructor & Destructor Documentation

◆ IncomingLink()

NAV::InputPin::IncomingLink::IncomingLink ( ax::NodeEditor::LinkId linkId,
Node * connectedNode,
ax::NodeEditor::PinId connectedPinId )
inline

Constructor.

Parameters
[in]linkIdUnique id of the link
[in]connectedNodeNode connected on the other end of the link
[in]connectedPinIdId of the pin, which is connected on the other end of the link

Member Function Documentation

◆ 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
TType 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: