Blender V5.0
DNA_array_utils.hh File Reference
#include "MEM_guardedalloc.h"
#include "BLI_function_ref.hh"
#include "BLI_index_range.hh"
#include "BLI_utildefines.h"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::dna
namespace  blender::dna::array

Functions

template<typename T>
void blender::dna::array::remove_index (T **items, int *items_num, int *active_index, const int index, void(*destruct_item)(T *))
template<typename T>
void blender::dna::array::remove_if (T **items, int *items_num, FunctionRef< bool(const T &)> predicate, void(*destruct_item)(T *))
template<typename T>
void blender::dna::array::clear (T **items, int *items_num, int *active_index, void(*destruct_item)(T *))
template<typename T>
void blender::dna::array::move_index (T *items, const int items_num, const int from_index, const int to_index)

Detailed Description

Contains functions that help dealing with arrays that are stored in DNA. Due to the constraints of DNA, all structs are trivial from the language's point of view (std::is_trivial_v). However, semantically, these types may have non-trivial copy-constructors and destructors.

Definition in file DNA_array_utils.hh.