|
Blender V5.0
|
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, blender::StringRef name_full) |
| void | remove_full_name (const short id_type, blender::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 Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), UniqueName_TypeMap::base_name_to_num_suffix, BLI_assert, BLI_assert_msg, count, UniqueName_TypeMap::full_names, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_as(), MAX_ID_NAME, and blender::StringRefBase::size().
Referenced by add_name(), and namemap_get_name().
|
inline |
Definition at line 186 of file main_namemap.cc.
References BKE_idtype_idcode_to_index(), and type_maps.
Referenced by add_name(), BKE_main_global_namemap_contain_name(), BKE_main_namemap_contain_name(), main_namemap_validate_and_fix(), namemap_get_name(), populate(), and remove_full_name().
Definition at line 192 of file main_namemap.cc.
References Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), UniqueName_TypeMap::base_name_to_num_suffix, BKE_id_name(), BLI_assert_msg, BLI_string_split_name_number(), count, find_by_type(), FOREACH_MAIN_ID_BEGIN, FOREACH_MAIN_ID_END, UniqueName_TypeMap::full_names, GS, ID::lib, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_as(), and ID::name.
Referenced by get_global_namemap_for(), and get_namemap_for().
|
inline |
Definition at line 321 of file main_namemap.cc.
References find_by_type(), and remove_full_name().
|
inline |
Definition at line 281 of file main_namemap.cc.
References UniqueName_TypeMap::base_name_to_num_suffix, BLI_assert, BLI_assert_msg, BLI_assert_unreachable, BLI_string_split_name_number(), count, UniqueName_TypeMap::full_names, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), MAX_ID_NAME, Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove(), Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove_contained(), and blender::StringRefBase::size().
Referenced by BKE_main_namemap_remove_id(), and remove_full_name().
| bool UniqueName_Map::is_global |
Definition at line 182 of file main_namemap.cc.
Referenced by UniqueName_Map().
| std::array<UniqueName_TypeMap, INDEX_ID_MAX> UniqueName_Map::type_maps |
Definition at line 179 of file main_namemap.cc.
Referenced by find_by_type(), and UniqueName_Map().