Blender V5.3
#include <cstring>
#include "DNA_defs.h"
#include "BLI_assert.hh"
#include "BLI_linear_allocator.hh"
#include "BLI_sys_types.hh"
#include "BLI_utildefines.hh"
#include "dna_utils.h"
#include "dna_rename_defs.h"

Go to the source code of this file.

Classes

struct  blender::StructRename
struct  blender::MemberRename

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define DNA_STRUCT_RENAME(old, new)
#define DNA_STRUCT_RENAME_MEMBER(new_struct_name, old, new)
#define DNA_STRUCT_RENAME(old, new)
#define DNA_STRUCT_RENAME_MEMBER(new_struct_name, old, new)

Functions

Struct Member Evaluation
int blender::DNA_member_array_num (const StringRef str)
Struct Member Manipulation
static bool blender::is_identifier (const char c)
uint blender::DNA_member_id_offset_start (const StringRef member_full)
static uint blender::dna_member_id_length (const StringRef member_full_trimmed)
StringRef blender::DNA_member_id_string_ref (const StringRef member_full)
bool blender::DNA_member_id_match (const StringRef member_id, const StringRef member_full, uint *r_member_full_offset)
StringRef blender::DNA_member_id_rename (LinearAllocator<> &mem_arena, const StringRef member_id_src, const StringRef member_id_dst, const StringRef member_full_src, const uint member_full_src_offset_len)
Struct Name Legacy Hack
StringRef blender::DNA_struct_rename_legacy_hack_static_from_alias (const StringRef name)
StringRef blender::DNA_struct_rename_legacy_hack_alias_from_static (const StringRef name)
Internal helpers for C++
void blender::_DNA_internal_memcpy (void *dst, const void *src, size_t size)
void blender::_DNA_internal_memzero (void *dst, size_t size)
void blender::_DNA_internal_swap (void *a, void *b, size_t size)

Rename Maps

static const StructRename blender::struct_renames []
static const MemberRename blender::member_renames []
DnaRenameMaps blender::DNA_rename_maps_alias_to_static ()
DnaRenameMaps blender::DNA_rename_maps_static_to_alias ()

Detailed Description

Utilities for stand-alone makesdna.cc and Blender to share.

Definition in file dna_utils.cc.

Macro Definition Documentation

◆ DNA_STRUCT_RENAME [1/2]

#define DNA_STRUCT_RENAME ( old,
new )

◆ DNA_STRUCT_RENAME [2/2]

#define DNA_STRUCT_RENAME ( old,
new )
Value:
{#old, #new},

◆ DNA_STRUCT_RENAME_MEMBER [1/2]

#define DNA_STRUCT_RENAME_MEMBER ( new_struct_name,
old,
new )
Value:
{#new_struct_name, #old, #new},

◆ DNA_STRUCT_RENAME_MEMBER [2/2]

#define DNA_STRUCT_RENAME_MEMBER ( new_struct_name,
old,
new )