|
Blender V5.3
|
Public Member Functions | |
| UniqueName_Map (const bool is_global) | |
| UniqueName_TypeMap & | find_by_type (const short id_type) |
| void | populate (Main &bmain, Library *library, ID *ignore_id) |
| void | add_name (UniqueName_TypeMap &type_map, StringRef name_full, StringRef name_base, const int number) |
| void | add_name (const short id_type, StringRef name_full, StringRef name_base, const int number) |
| void | remove_full_name (UniqueName_TypeMap &type_map, StringRef name_full) |
| void | remove_full_name (const short id_type, StringRef name_full) |
Public Attributes | |
| std::array< UniqueName_TypeMap, INDEX_ID_MAX > | type_maps |
| bool | is_global |
Definition at line 178 of file main_namemap.cc.
|
inline |
Definition at line 184 of file main_namemap.cc.
|
inline |
Definition at line 274 of file main_namemap.cc.
References add_name(), and find_by_type().
|
inline |
Definition at line 245 of file main_namemap.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::UniqueName_TypeMap::base_name_to_num_suffix, blender::BLI_assert(), BLI_assert_msg, blender::UniqueName_TypeMap::full_names, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_as(), MAX_ID_NAME, and blender::blender::StringRefBase::size().
Referenced by add_name(), and blender::namemap_get_name().
|
inline |
Definition at line 186 of file main_namemap.cc.
References blender::BKE_idtype_idcode_to_index(), and type_maps.
Referenced by add_name(), blender::BKE_main_global_namemap_contain_name(), blender::BKE_main_namemap_contain_name(), blender::main_namemap_validate_and_fix(), blender::namemap_get_name(), populate(), and remove_full_name().
Definition at line 192 of file main_namemap.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::UniqueName_TypeMap::base_name_to_num_suffix, blender::BKE_id_name(), BLI_assert_msg, blender::BLI_string_split_name_number(), find_by_type(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, blender::UniqueName_TypeMap::full_names, blender::GS(), and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_as().
Referenced by blender::get_global_namemap_for(), and blender::get_namemap_for().
|
inline |
Definition at line 333 of file main_namemap.cc.
References find_by_type(), and remove_full_name().
|
inline |
Definition at line 281 of file main_namemap.cc.
References blender::UniqueName_TypeMap::base_name_to_num_suffix, blender::BLI_assert(), BLI_assert_msg, BLI_assert_unreachable, blender::BLI_string_split_name_number(), blender::UniqueName_TypeMap::full_names, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), MAX_ID_NAME, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove_contained(), and blender::blender::StringRefBase::size().
Referenced by blender::BKE_main_namemap_remove_id(), and remove_full_name().
| bool blender::UniqueName_Map::is_global |
Definition at line 182 of file main_namemap.cc.
Referenced by UniqueName_Map().
| std::array<UniqueName_TypeMap, INDEX_ID_MAX> blender::UniqueName_Map::type_maps |
Definition at line 179 of file main_namemap.cc.
Referenced by find_by_type(), and UniqueName_Map().