Blender V5.3
main_namemap.cc File Reference
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_main_namemap.hh"
#include "BLI_assert.hh"
#include "BLI_bit_span_ops.hh"
#include "BLI_bit_vector.hh"
#include "BLI_listbase.hh"
#include "BLI_map.hh"
#include "BLI_math_base.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "DNA_ID.h"
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include <fmt/format.h>

Go to the source code of this file.

Classes

struct  blender::UniqueName_Value
struct  blender::UniqueName_TypeMap
struct  blender::UniqueName_Map
struct  blender::Uniqueness_Key

Namespaces

namespace  blender
 BMesh Iterators.

Functions

void blender::BKE_main_namemap_destroy (UniqueName_Map **r_name_map) ATTR_NONNULL()
void blender::BKE_main_namemap_clear (Main &bmain)
static UniqueName_Map * blender::get_global_namemap_for (Main &bmain, ID *ignore_id, const bool ensure_created)
static UniqueName_Map * blender::get_namemap_for (Main &bmain, Library *lib, ID *ignore_id, const bool ensure_created)
bool blender::BKE_main_global_namemap_contain_name (Main &bmain, short id_type, StringRef name)
bool blender::BKE_main_namemap_contain_name (Main &bmain, Library *lib, short id_type, StringRef name)
static bool blender::id_name_final_build (UniqueName_TypeMap &type_map, const StringRefNull base_name, const int number, std::string &r_name_final)
static bool blender::namemap_get_name (Main &bmain, ID &id, std::string &r_name_full, const bool do_unique_in_bmain)
bool blender::BKE_main_namemap_get_unique_name (Main &bmain, ID &id, char *r_name)
bool blender::BKE_main_global_namemap_get_unique_name (Main &bmain, ID &id, char *r_name)
void blender::BKE_main_namemap_remove_id (Main &bmain, ID &id)
static bool blender::main_namemap_validate_and_fix (Main &bmain, const bool do_fix)
bool blender::BKE_main_namemap_validate_and_fix (Main &bmain)
bool blender::BKE_main_namemap_validate (Main &bmain)

Variables

static CLG_LogRef blender::LOG = {"lib.main_namemap"}
constexpr int blender::MAX_NUMBER = 999999999
constexpr int blender::NO_AVAILABLE_NUMBER = -1