|
Blender V5.3
|
#include <NOD_geometry_nodes_bundle.hh>
Inherits blender::blender::ImplicitSharingMixin.
Public Types | |
| using | BundleItemMap = Map<BundleKey, BundleItemValue> |
Public Member Functions | |
| bool | add (BundleKey key, const BundleItemValue &value) |
| bool | add (BundleKey key, BundleItemValue &&value) |
| template<typename T> requires (!std::is_same_v<std::decay_t<T>, BundleItemValue>) | |
| void | add (BundleKey key, T &&value) |
| void | add_new (BundleKey key, const BundleItemValue &value) |
| void | add_new (BundleKey key, BundleItemValue &&value) |
| template<typename T> requires (!std::is_same_v<std::decay_t<T>, BundleItemValue>) | |
| void | add_new (BundleKey key, T &&value) |
| void | add_override (BundleKey key, const BundleItemValue &value) |
| template<typename T> requires (!std::is_same_v<std::decay_t<T>, BundleItemValue>) | |
| void | add_override (BundleKey key, T &&value) |
| bool | add_path (StringRef path, const BundleItemValue &value) |
| template<typename T> requires (!std::is_same_v<std::decay_t<T>, BundleItemValue>) | |
| void | add_path (StringRef path, T &&value) |
| void | add_path_new (StringRef path, const BundleItemValue &value) |
| void | add_path_override (StringRef path, const BundleItemValue &value) |
| void | add_path_override (Span< BundleKey > path, const BundleItemValue &value) |
| template<typename T> requires (!std::is_same_v<std::decay_t<T>, BundleItemValue>) | |
| void | add_path_override (Span< BundleKey > path, T &&value) |
| template<typename T> requires (!std::is_same_v<std::decay_t<T>, BundleItemValue>) | |
| void | add_path_override (StringRef path, T &&value) |
| bool | remove (BundleKey key) |
| bool | remove_path (StringRef path) |
| bool | remove_path (Span< BundleKey > path) |
| bool | contains (BundleKey key) const |
| bool | contains_path (StringRef path) const |
| bool | contains_path (Span< BundleKey > path) const |
| const BundleItemValue * | lookup (BundleKey key) const |
| BundleItemValue * | lookup (BundleKey key) |
| template<typename T> | |
| std::optional< T > | lookup (BundleKey key) const |
| const BundleItemValue * | lookup_path (Span< BundleKey > path) const |
| const BundleItemValue * | lookup_path (StringRef path) const |
| template<typename T> | |
| std::optional< T > | lookup_path (Span< BundleKey > path) const |
| template<typename T> | |
| std::optional< T > | lookup_path (StringRef path) const |
| BundleItemValue * | lookup_path_for_write (Span< BundleKey > path) |
| BundleItemValue * | lookup_path_for_write (StringRef path) |
| template<typename T> | |
| T * | lookup_ptr (BundleKey key) |
| template<typename T> | |
| const T * | lookup_ptr (BundleKey key) const |
| template<typename T> | |
| const T * | lookup_path_ptr (StringRef path) const |
| template<typename T> | |
| const T * | lookup_path_ptr (Span< BundleKey > path) const |
| template<typename T> | |
| T * | lookup_path_for_write_ptr (StringRef path) |
| template<typename T> | |
| T * | lookup_path_for_write_ptr (Span< BundleKey > path) |
| Bundle & | ensure_nested_bundle (StringRef path) |
| void | merge (const Bundle &other) |
| void | merge_override (const Bundle &other) |
| bool | is_empty () const |
| int64_t | size () const |
| void | clear () |
| std::optional< StringRef > | type () const |
| void | ensure_owns_direct_data () |
| bool | owns_direct_data () const |
| BundleItemMap::ItemIterator | items () const |
| BundleItemMap::MutableItemIterator | items () |
| BundlePtr | copy () const |
| void | delete_self () override |
| void | count_memory (MemoryCounter &memory) const |
| Vector< std::string > | gather_paths (FunctionRef< bool(const Bundle &bundle)> fn) const |
| Public Member Functions inherited from blender::blender::ImplicitSharingInfo | |
| virtual | ~ImplicitSharingInfo () |
| bool | is_mutable () const |
| bool | is_expired () const |
| void | add_user () const |
| void | add_weak_user () const |
| void | tag_ensured_mutable () const |
| int64_t | version () const |
| int | strong_users () const |
| void | remove_user_and_delete_if_last () const |
| void | remove_weak_user_and_delete_if_last () const |
Static Public Member Functions | |
| static BundlePtr | create () |
| static std::string | combine_path (Span< StringRef > path) |
| static std::string | combine_path (Span< BundleKey > path) |
| static bool | is_valid_path (StringRef path) |
| static std::optional< Vector< BundleKey > > | split_path (StringRef path) |
Static Public Attributes | |
| static BundleKey | type_item_name = *BundleKey::from_str("Type") |
A bundle is a map containing keys and their corresponding values.
The API also supports working with paths in nested bundles like root/child/data.
Definition at line 90 of file NOD_geometry_nodes_bundle.hh.
Definition at line 92 of file NOD_geometry_nodes_bundle.hh.
| bool blender::nodes::Bundle::add | ( | BundleKey | key, |
| BundleItemValue && | value ) |
Definition at line 118 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::add | ( | BundleKey | key, |
| const BundleItemValue & | value ) |
Definition at line 109 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 422 of file NOD_geometry_nodes_bundle.hh.
| void blender::nodes::Bundle::add_new | ( | BundleKey | key, |
| BundleItemValue && | value ) |
Definition at line 98 of file geometry_nodes_bundle.cc.
| void blender::nodes::Bundle::add_new | ( | BundleKey | key, |
| const BundleItemValue & | value ) |
Definition at line 93 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 430 of file NOD_geometry_nodes_bundle.hh.
| void blender::nodes::Bundle::add_override | ( | BundleKey | key, |
| const BundleItemValue & | value ) |
Definition at line 103 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 448 of file NOD_geometry_nodes_bundle.hh.
| bool blender::nodes::Bundle::add_path | ( | StringRef | path, |
| const BundleItemValue & | value ) |
Definition at line 159 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 439 of file NOD_geometry_nodes_bundle.hh.
| void blender::nodes::Bundle::add_path_new | ( | StringRef | path, |
| const BundleItemValue & | value ) |
Definition at line 168 of file geometry_nodes_bundle.cc.
| void blender::nodes::Bundle::add_path_override | ( | Span< BundleKey > | path, |
| const BundleItemValue & | value ) |
Definition at line 135 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 466 of file NOD_geometry_nodes_bundle.hh.
| void blender::nodes::Bundle::add_path_override | ( | StringRef | path, |
| const BundleItemValue & | value ) |
Definition at line 152 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 457 of file NOD_geometry_nodes_bundle.hh.
| void blender::nodes::Bundle::clear | ( | ) |
Definition at line 352 of file geometry_nodes_bundle.cc.
|
static |
Definition at line 342 of file geometry_nodes_bundle.cc.
|
static |
Create the combined path by inserting '/' between each element.
Definition at line 337 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::contains | ( | BundleKey | key | ) | const |
Definition at line 322 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::contains_path | ( | Span< BundleKey > | path | ) | const |
Definition at line 332 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::contains_path | ( | StringRef | path | ) | const |
Definition at line 327 of file geometry_nodes_bundle.cc.
| BundlePtr blender::nodes::Bundle::copy | ( | ) | const |
Definition at line 285 of file geometry_nodes_bundle.cc.
| void blender::nodes::Bundle::count_memory | ( | MemoryCounter & | memory | ) | const |
Definition at line 363 of file geometry_nodes_bundle.cc.
|
static |
Definition at line 88 of file geometry_nodes_bundle.cc.
Referenced by blender::bke::tests::TEST_F().
|
overridevirtual |
Implements blender::blender::ImplicitSharingMixin.
Definition at line 347 of file geometry_nodes_bundle.cc.
Definition at line 174 of file geometry_nodes_bundle.cc.
Also see #GeometrySet.ensure_owns_direct_data.
Definition at line 264 of file geometry_nodes_bundle.cc.
| Vector< std::string > blender::nodes::Bundle::gather_paths | ( | FunctionRef< bool(const Bundle &bundle)> | fn | ) | const |
|
inline |
Definition at line 483 of file NOD_geometry_nodes_bundle.hh.
|
static |
Definition at line 52 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 478 of file NOD_geometry_nodes_bundle.hh.
|
inline |
Definition at line 473 of file NOD_geometry_nodes_bundle.hh.
Definition at line 191 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 303 of file NOD_geometry_nodes_bundle.hh.
| const BundleItemValue * blender::nodes::Bundle::lookup | ( | BundleKey | key | ) | const |
Definition at line 186 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 348 of file NOD_geometry_nodes_bundle.hh.
| const BundleItemValue * blender::nodes::Bundle::lookup_path | ( | Span< BundleKey > | path | ) | const |
Definition at line 196 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 357 of file NOD_geometry_nodes_bundle.hh.
| const BundleItemValue * blender::nodes::Bundle::lookup_path | ( | StringRef | path | ) | const |
Definition at line 214 of file geometry_nodes_bundle.cc.
Definition at line 221 of file geometry_nodes_bundle.cc.
Definition at line 243 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 336 of file NOD_geometry_nodes_bundle.hh.
|
inline |
Definition at line 342 of file NOD_geometry_nodes_bundle.hh.
|
inline |
Definition at line 324 of file NOD_geometry_nodes_bundle.hh.
|
inline |
Definition at line 318 of file NOD_geometry_nodes_bundle.hh.
|
inline |
Definition at line 312 of file NOD_geometry_nodes_bundle.hh.
|
inline |
Definition at line 330 of file NOD_geometry_nodes_bundle.hh.
| void blender::nodes::Bundle::merge | ( | const Bundle & | other | ) |
Definition at line 250 of file geometry_nodes_bundle.cc.
| void blender::nodes::Bundle::merge_override | ( | const Bundle & | other | ) |
Definition at line 257 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::owns_direct_data | ( | ) | const |
Definition at line 273 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::remove | ( | BundleKey | key | ) |
Definition at line 293 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::remove_path | ( | Span< BundleKey > | path | ) |
Definition at line 305 of file geometry_nodes_bundle.cc.
| bool blender::nodes::Bundle::remove_path | ( | StringRef | path | ) |
Definition at line 298 of file geometry_nodes_bundle.cc.
|
inline |
Definition at line 488 of file NOD_geometry_nodes_bundle.hh.
|
static |
Definition at line 57 of file geometry_nodes_bundle.cc.
| std::optional< StringRef > blender::nodes::Bundle::type | ( | ) | const |
Definition at line 357 of file geometry_nodes_bundle.cc.
|
inlinestatic |
Definition at line 98 of file NOD_geometry_nodes_bundle.hh.