Blender V4.3
blender::nodes::node_geo_bake_cc::DummyDataBlockMap Struct Reference

Inherits blender::bke::bake::BakeDataBlockMap.

Public Member Functions

IDlookup_or_remember_missing (const bake::BakeDataBlockID &key) override
 
void try_add (ID &id) override
 

Detailed Description

This is used when the bake node should just pass-through the data and the caller of geometry nodes should not have to care about this.

Definition at line 260 of file node_geo_bake.cc.

Member Function Documentation

◆ lookup_or_remember_missing()

ID * blender::nodes::node_geo_bake_cc::DummyDataBlockMap::lookup_or_remember_missing ( const bake::BakeDataBlockID & key)
inlineoverridevirtual

Tries to retrieve the data block for the given key. If it's not explicitly mapped, it might be added to the mapping. If it's still not found, null is returned.

Implements blender::bke::bake::BakeDataBlockMap.

Definition at line 266 of file node_geo_bake.cc.

References lock, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default().

◆ try_add()

void blender::nodes::node_geo_bake_cc::DummyDataBlockMap::try_add ( ID & id)
inlineoverridevirtual

Tries to add the data block to the map. This may not succeed in all cases, e.g. if the implementation does not allow inserting new mapping items.

Implements blender::bke::bake::BakeDataBlockMap.

Definition at line 272 of file node_geo_bake.cc.

References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), and lock.


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