Blender V4.3
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]

blender::nodes::DSocket::DSocket ( )
default

◆ 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(), and bNodeSocket::runtime.

◆ DSocket() [3/4]

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

Definition at line 352 of file NOD_derived_node_tree.hh.

◆ DSocket() [4/4]

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

Definition at line 357 of file NOD_derived_node_tree.hh.

Member Function Documentation

◆ bsocket()

const bNodeSocket * blender::nodes::DSocket::bsocket ( ) const
inline

Definition at line 367 of file NOD_derived_node_tree.hh.

References bsocket_.

Referenced by DSocket(), and blender::realtime_compositor::populate_gpu_node_stack().

◆ context()

◆ hash()

uint64_t blender::nodes::DSocket::hash ( ) const
inline

Definition at line 388 of file NOD_derived_node_tree.hh.

References bsocket_, context_, and blender::get_default_hash().

◆ node()

◆ operator bool()

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

Definition at line 372 of file NOD_derived_node_tree.hh.

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