Blender  V3.3
Public Member Functions | Friends | List of all members
blender::nodes::DNode Class Reference

#include <NOD_derived_node_tree.hh>

Public Member Functions

 DNode ()=default
 
#DNode Inline Methods
 DNode (const DTreeContext *context, const NodeRef *node)
 
const DTreeContextcontext () const
 
const NodeRefnode_ref () const
 
const NodeRefoperator-> () 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
 

Friends

bool operator== (const DNode &a, const DNode &b)
 
bool operator!= (const DNode &a, const DNode &b)
 

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 65 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 NodeRef node 
)
inline

Member Function Documentation

◆ context()

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

Definition at line 273 of file NOD_derived_node_tree.hh.

Referenced by DNode().

◆ hash()

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

Definition at line 303 of file NOD_derived_node_tree.hh.

References blender::get_default_hash_2().

◆ input()

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

◆ input_by_identifier()

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

◆ node_ref()

const NodeRef * blender::nodes::DNode::node_ref ( ) const
inline

Definition at line 278 of file NOD_derived_node_tree.hh.

Referenced by DNode().

◆ operator bool()

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

Definition at line 293 of file NOD_derived_node_tree.hh.

◆ operator->()

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

Definition at line 298 of file NOD_derived_node_tree.hh.

◆ output()

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

◆ output_by_identifier()

DOutputSocket blender::nodes::DNode::output_by_identifier ( StringRef  identifier) const
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const DNode a,
const DNode b 
)
friend

Definition at line 288 of file NOD_derived_node_tree.hh.

◆ operator==

bool operator== ( const DNode a,
const DNode b 
)
friend

Definition at line 283 of file NOD_derived_node_tree.hh.


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