Blender V5.0
blender::nodes::DSocket Class Reference

#include <NOD_derived_node_tree.hh>

Inherited by blender::nodes::DInputSocket, and blender::nodes::DOutputSocket.

Public Member Functions

 DSocket ()=default
#DSocket Inline Methods
 DSocket (const DTreeContext *context, const bNodeSocket *socket)
 DSocket (const DInputSocket &input_socket)
 DSocket (const DOutputSocket &output_socket)
const DTreeContextcontext () const
const bNodeSocketbsocket () const
const bNodeSocketoperator-> () const
const bNodeSocketoperator* () const
 operator bool () const
uint64_t hash () const
DNode node () const

Protected Attributes

const DTreeContextcontext_ = nullptr
const bNodeSocketbsocket_ = nullptr

Detailed Description

A (nullable) reference to a socket and the context it is in. It is unique within an entire nested node group hierarchy. This type is small and can be passed around by value.

A DSocket can represent an input or an output socket. If the type of a socket is known at compile time is preferable to use DInputSocket or DOutputSocket instead.

Definition at line 106 of file NOD_derived_node_tree.hh.

Constructor & Destructor Documentation

◆ DSocket() [1/4]

◆ DSocket() [2/4]

blender::nodes::DSocket::DSocket ( const DTreeContext * context,
const bNodeSocket * socket )
inline

Definition at line 345 of file NOD_derived_node_tree.hh.

References BLI_assert, bsocket(), bsocket_, context(), and context_.

◆ DSocket() [3/4]

blender::nodes::DSocket::DSocket ( const DInputSocket & input_socket)
inline

Definition at line 352 of file NOD_derived_node_tree.hh.

References bsocket_, context_, and DSocket().

◆ DSocket() [4/4]

blender::nodes::DSocket::DSocket ( const DOutputSocket & output_socket)
inline

Definition at line 357 of file NOD_derived_node_tree.hh.

References bsocket_, context_, and DSocket().

Member Function Documentation

◆ bsocket()

◆ context()

◆ hash()

◆ node()

Definition at line 393 of file NOD_derived_node_tree.hh.

References BLI_assert, bsocket_, and context_.

◆ operator bool()

blender::nodes::DSocket::operator bool ( ) const
inline

Definition at line 372 of file NOD_derived_node_tree.hh.

References bsocket_.

◆ operator*()

const bNodeSocket & blender::nodes::DSocket::operator* ( ) const
inline

Definition at line 382 of file NOD_derived_node_tree.hh.

References BLI_assert, and bsocket_.

◆ operator->()

const bNodeSocket * blender::nodes::DSocket::operator-> ( ) const
inline

Definition at line 377 of file NOD_derived_node_tree.hh.

References bsocket_.

Member Data Documentation

◆ bsocket_

◆ context_


The documentation for this class was generated from the following file: