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

#include <NOD_derived_node_tree.hh>

Public Member Functions

 DNode ()=default
bNodeInstanceKey instance_key () const
#DNode Inline Methods
 DNode (const DTreeContext *context, const bNode *node)
const DTreeContextcontext () const
const bNodebnode () const
const bNodeoperator-> () const
const bNodeoperator* () const
 operator bool () const
uint64_t hash () const
DInputSocket input (int index) const
DOutputSocket output (int index) const
DInputSocket input_by_identifier (StringRef identifier) const
DOutputSocket output_by_identifier (StringRef identifier) const

Detailed Description

A (nullable) reference to a node 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.

Definition at line 71 of file NOD_derived_node_tree.hh.

Constructor & Destructor Documentation

◆ DNode() [1/2]

References context(), and DNode().

Referenced by DNode().

◆ DNode() [2/2]

blender::nodes::DNode::DNode ( const DTreeContext * context,
const bNode * node )
inline

Definition at line 282 of file NOD_derived_node_tree.hh.

References BLI_assert, bnode(), and context().

Member Function Documentation

◆ bnode()

const bNode * blender::nodes::DNode::bnode ( ) const
inline

Definition at line 293 of file NOD_derived_node_tree.hh.

Referenced by DNode(), and instance_key().

◆ context()

◆ hash()

Definition at line 314 of file NOD_derived_node_tree.hh.

References blender::get_default_hash().

◆ input()

DInputSocket blender::nodes::DNode::input ( int index) const
inline

Definition at line 319 of file NOD_derived_node_tree.hh.

◆ input_by_identifier()

Definition at line 329 of file NOD_derived_node_tree.hh.

◆ instance_key()

bNodeInstanceKey blender::nodes::DNode::instance_key ( ) const

Definition at line 99 of file derived_node_tree.cc.

References bnode(), context(), instance_key(), and blender::bke::node_instance_key().

Referenced by instance_key().

◆ operator bool()

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

Definition at line 298 of file NOD_derived_node_tree.hh.

◆ operator*()

const bNode & blender::nodes::DNode::operator* ( ) const
inline

Definition at line 308 of file NOD_derived_node_tree.hh.

References BLI_assert.

◆ operator->()

const bNode * blender::nodes::DNode::operator-> ( ) const
inline

Definition at line 303 of file NOD_derived_node_tree.hh.

◆ output()

DOutputSocket blender::nodes::DNode::output ( int index) const
inline

Definition at line 324 of file NOD_derived_node_tree.hh.

◆ output_by_identifier()


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