|
Blender V5.0
|
Public Member Functions | |
| void | mark_used (const int number) |
| void | mark_unused (const int number) |
| int | get_smallest_unused () |
Public Attributes | |
| std::optional< int > | max_value_in_use = {} |
| BitVector | mask = {} |
| std::optional< Map< int, int > > | numbers_multi_usages = std::nullopt |
Static Public Attributes | |
| static constexpr int | max_exact_tracking = 1023 |
Definition at line 53 of file main_namemap.cc.
|
inline |
Return the smallest non-null known free number.
Definition at line 138 of file main_namemap.cc.
References blender::bits::BitVector< InlineBufferCapacity, Allocator >::data(), max_exact_tracking, MAX_NUMBER, NO_AVAILABLE_NUMBER, result, and blender::bits::BitVector< InlineBufferCapacity, Allocator >::size().
|
inline |
Definition at line 100 of file main_namemap.cc.
References BLI_assert, BLI_assert_msg, mask, max_exact_tracking, and NO_AVAILABLE_NUMBER.
|
inline |
Definition at line 71 of file main_namemap.cc.
References BLI_assert, max_exact_tracking, blender::math::max_inplace(), MAX_NUMBER, blender::bits::BitVector< InlineBufferCapacity, Allocator >::resize(), and blender::bits::BitVector< InlineBufferCapacity, Allocator >::size().
| BitVector UniqueName_Value::mask = {} |
Definition at line 56 of file main_namemap.cc.
Referenced by mark_unused().
|
staticconstexpr |
Definition at line 54 of file main_namemap.cc.
Referenced by get_smallest_unused(), mark_unused(), and mark_used().
| std::optional<int> UniqueName_Value::max_value_in_use = {} |
Definition at line 55 of file main_namemap.cc.
| std::optional<Map<int, int> > UniqueName_Value::numbers_multi_usages = std::nullopt |
Definition at line 69 of file main_namemap.cc.