Blender V4.3
blender::nodes::DNode Class Reference

#include <NOD_derived_node_tree.hh>

Public Member Functions

 DNode ()=default
 
const 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]

blender::nodes::DNode::DNode ( )
default

◆ 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 bNode::runtime.

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

const DTreeContext * blender::nodes::DNode::context ( ) const
inline

Definition at line 288 of file NOD_derived_node_tree.hh.

Referenced by instance_key().

◆ hash()

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

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

DInputSocket blender::nodes::DNode::input_by_identifier ( StringRef identifier) const
inline

◆ instance_key()

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