|
Blender V4.3
|
Functions | |
| template<typename T > | |
| void | remove_index (T **items, int *items_num, int *active_index, const int index, void(*destruct_item)(T *)) |
| template<typename T > | |
| void | clear (T **items, int *items_num, int *active_index, void(*destruct_item)(T *)) |
| template<typename T > | |
| void | move_index (T *items, const int items_num, const int from_index, const int to_index) |
|
inline |
Removes all elements from an array and frees it.
Definition at line 58 of file DNA_array_utils.hh.
References MEM_SAFE_FREE.
Referenced by blender::ed::object::bake_simulation::clear_data_block_references(), and blender::animrig::ChannelBag::fcurves_clear().
|
inline |
Moves one element from one index to another, moving other elements if necessary.
Definition at line 75 of file DNA_array_utils.hh.
References BLI_assert, and UNUSED_VARS_NDEBUG.
Referenced by blender::nodes::socket_items::ops::add_item(), and blender::nodes::socket_items::ops::move_active_item().
|
inline |
Removes an element from the array and shifts the elements after it towards the front.
Definition at line 24 of file DNA_array_utils.hh.
References BLI_assert, and MEM_freeN().
Referenced by blender::animrig::StripKeyframeData::channelbag_remove(), blender::animrig::ChannelBag::fcurve_detach_by_index(), blender::animrig::Action::layer_remove(), blender::nodes::socket_items::ops::remove_active_item(), blender::nodes::socket_items::ops::remove_item_by_index(), blender::animrig::Action::slot_remove(), and blender::animrig::Layer::strip_remove().