Blender  V3.3
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
blender::modifiers::geometry_nodes::NodeWithState Struct Reference

Public Member Functions

uint64_t hash () const
 

Static Public Member Functions

static uint64_t hash_as (const DNode &node)
 

Public Attributes

DNode node
 
NodeStatestate = nullptr
 

Friends

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

Detailed Description

Container for a node and its state. Packing them into a single struct allows the use of VectorSet instead of a Map for node_states_ which simplifies parallel loops over all states.

Equality operators and a hash function for DNode are provided so that one can lookup this type in node_states_ just with a DNode.

Definition at line 260 of file MOD_nodes_evaluator.cc.

Member Function Documentation

◆ hash()

uint64_t blender::modifiers::geometry_nodes::NodeWithState::hash ( ) const
inline

Definition at line 280 of file MOD_nodes_evaluator.cc.

References node.

◆ hash_as()

static uint64_t blender::modifiers::geometry_nodes::NodeWithState::hash_as ( const DNode node)
inlinestatic

Definition at line 285 of file MOD_nodes_evaluator.cc.

References node.

Friends And Related Function Documentation

◆ operator== [1/3]

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

Definition at line 275 of file MOD_nodes_evaluator.cc.

◆ operator== [2/3]

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

Definition at line 270 of file MOD_nodes_evaluator.cc.

◆ operator== [3/3]

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

Definition at line 265 of file MOD_nodes_evaluator.cc.

Member Data Documentation

◆ node

DNode blender::modifiers::geometry_nodes::NodeWithState::node

◆ state

NodeState* blender::modifiers::geometry_nodes::NodeWithState::state = nullptr

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