|
Blender V5.3
|
#include <DNA_sdna_types.h>
Classes | |
| struct | [struct].alias |
Public Member Functions | |
| ~SDNA () | |
Public Attributes | |
| const char * | data = nullptr |
| int | data_size = 0 |
| bool | data_alloc = false |
| int | pointer_size = 0 |
| int | types_num = 0 |
| Array< StringRef > | types |
| short * | types_size = nullptr |
| Array< int > | types_alignment |
| Array< SDNA_Struct *, 0 > | structs |
| int | members_num = 0 |
| Vector< StringRef > | members |
| Vector< short > | members_array_num |
| Map< StringRef, int > | types_to_structs_map |
| struct | alias |
| LinearAllocator | mem_arena |
Definition at line 54 of file DNA_sdna_types.h.
| blender::SDNA::~SDNA | ( | ) |
Definition at line 125 of file dna_genfile.cc.
References data, and data_alloc.
| struct blender::SDNA::[struct].alias blender::SDNA::alias |
Referenced by blender::DNA_sdna_alias_data_ensure(), blender::DNA_sdna_alias_data_ensure_structs_map(), blender::DNA_sdna_patch_struct_member(), blender::DNA_struct_find_index_with_alias_ex(), blender::DNA_struct_identifier(), blender::elem_exists_with_alias(), blender::elem_offset_with_alias(), and blender::init_structDNA().
| const char* blender::SDNA::data = nullptr |
The 'encoded' data (full copy when data_alloc is set, otherwise borrowed memory).
Definition at line 56 of file DNA_sdna_types.h.
Referenced by blender::init_structDNA(), blender::write_file_handle(), and ~SDNA().
| bool blender::SDNA::data_alloc = false |
Definition at line 59 of file DNA_sdna_types.h.
Referenced by ~SDNA().
| int blender::SDNA::data_size = 0 |
Length of data, in bytes.
Definition at line 58 of file DNA_sdna_types.h.
Referenced by blender::init_structDNA(), and blender::write_file_handle().
| LinearAllocator blender::SDNA::mem_arena |
Temporary memory currently only used for version patching DNA.
Definition at line 138 of file DNA_sdna_types.h.
Referenced by blender::dna_sdna_alias_from_static_elem_full(), blender::DNA_sdna_patch_struct_member(), and blender::sdna_expand_names().
Struct member names.
Definition at line 102 of file DNA_sdna_types.h.
Referenced by blender::DNA_sdna_alias_data_ensure(), blender::DNA_sdna_patch_struct_member(), blender::DNA_struct_member_size(), blender::elem_exists_with_alias(), blender::elem_exists_without_alias(), blender::elem_offset_with_alias(), blender::elem_offset_without_alias(), blender::find_member_with_matching_name(), blender::get_member_size_in_bytes(), blender::get_struct_member_category(), blender::init_reconstruct_step_for_member(), blender::init_structDNA(), blender::dna::print_single_struct_recursive(), blender::sdna_expand_names(), blender::sdna_struct_size_check(), and blender::set_compare_flags_for_struct().
| Vector<short> blender::SDNA::members_array_num |
Aligned with members. The total number of items in the array defined by the matching member, if any, otherwise 1.
Result of DNA_member_array_num.
Definition at line 109 of file DNA_sdna_types.h.
Referenced by blender::DNA_sdna_patch_struct_member(), blender::DNA_struct_member_size(), blender::get_member_size_in_bytes(), blender::init_reconstruct_step_for_member(), blender::init_structDNA(), blender::dna::print_single_struct_recursive(), blender::sdna_expand_names(), and blender::sdna_struct_size_check().
| int blender::SDNA::members_num = 0 |
Total number of struct members.
Definition at line 100 of file DNA_sdna_types.h.
Referenced by blender::DNA_sdna_alias_data_ensure(), blender::DNA_sdna_patch_struct_member(), blender::init_structDNA(), and blender::sdna_expand_names().
| int blender::SDNA::pointer_size = 0 |
Size of a pointer in bytes.
Definition at line 62 of file DNA_sdna_types.h.
Referenced by blender::blo_read_pointer_array_impl(), blender::DNA_struct_member_size(), blender::get_member_size_in_bytes(), blender::init_reconstruct_step_for_member(), blender::init_structDNA(), blender::dna::print_single_struct_recursive(), blender::sdna_struct_size_check(), and blender::set_compare_flags_for_struct().
| Array<SDNA_Struct *, 0> blender::SDNA::structs |
This covers all known structs from SDNA (pointers to SDNA_Struct data).
NOTE: See comment above about SDNA types above for differences between structs and types definitions. Information about structs and their members.
Definition at line 95 of file DNA_sdna_types.h.
Referenced by blender::DNA_reconstruct_info_create(), blender::DNA_reconstruct_info_free(), blender::DNA_sdna_alias_data_ensure(), blender::DNA_sdna_alias_data_ensure_structs_map(), blender::DNA_sdna_patch_struct(), blender::DNA_sdna_patch_struct_member(), blender::DNA_struct_find_index_with_alias_ex(), blender::DNA_struct_find_index_without_alias_ex(), blender::DNA_struct_get_compareflags(), blender::DNA_struct_identifier(), blender::DNA_struct_member_exists_with_alias(), blender::DNA_struct_member_exists_without_alias(), blender::DNA_struct_member_offset_by_name_with_alias(), blender::DNA_struct_member_offset_by_name_without_alias(), blender::DNA_struct_reconstruct(), blender::DNA_struct_size(), blender::init_structDNA(), blender::dna::pointers::PointersInDNA::PointersInDNA(), blender::print_reconstruct_step(), blender::dna::print_single_struct_recursive(), blender::dna::print_structs_at_address(), blender::reconstruct_structs(), blender::sdna_expand_names(), and blender::set_compare_flags_for_struct().
Type names.
Definition at line 76 of file DNA_sdna_types.h.
Referenced by blender::DNA_reconstruct_info_create(), blender::DNA_sdna_alias_data_ensure(), blender::DNA_sdna_alias_data_ensure_structs_map(), blender::DNA_sdna_patch_struct(), blender::DNA_struct_find_index_with_alias_ex(), blender::DNA_struct_find_index_without_alias_ex(), blender::DNA_struct_get_compareflags(), blender::DNA_struct_identifier(), blender::DNA_struct_reconstruct(), blender::elem_exists_with_alias(), blender::elem_exists_without_alias(), blender::elem_offset_with_alias(), blender::elem_offset_without_alias(), blender::get_struct_member_category(), blender::init_reconstruct_step_for_member(), blender::init_structDNA(), blender::print_reconstruct_step(), blender::dna::print_single_struct_recursive(), blender::dna::print_struct_array_recursive(), blender::dna::print_structs_at_address(), and blender::set_compare_flags_for_struct().
| Array<int> blender::SDNA::types_alignment |
Alignment used when allocating pointers to this type. The actual minimum alignment of the type may be lower in some cases. For example, the pointer alignment of a single char is at least 8 bytes, but the alignment of the type itself is 1.
Definition at line 84 of file DNA_sdna_types.h.
Referenced by blender::DNA_struct_alignment(), and blender::init_structDNA().
| int blender::SDNA::types_num = 0 |
This covers all known types (basic and structs ones) from SDNA.
NOTE: This data is not in sync with the SDNA structs info below. Among other things:
Definition at line 74 of file DNA_sdna_types.h.
Referenced by blender::DNA_sdna_alias_data_ensure(), blender::DNA_struct_find_index_with_alias_ex(), blender::DNA_struct_find_index_without_alias_ex(), and blender::init_structDNA().
| short* blender::SDNA::types_size = nullptr |
Type lengths.
Definition at line 78 of file DNA_sdna_types.h.
Referenced by blender::DNA_struct_member_size(), blender::DNA_struct_reconstruct(), blender::DNA_struct_size(), blender::get_member_size_in_bytes(), blender::init_reconstruct_step_for_member(), blender::init_structDNA(), blender::print_reconstruct_step(), blender::dna::print_single_struct_recursive(), blender::dna::print_struct_array_recursive(), blender::reconstruct_structs(), blender::sdna_struct_size_check(), and blender::set_compare_flags_for_struct().
Mapping between type names (from types array above) and struct indices (into structs array above).
Requires WITH_DNA_GHASH to be used for now.
Definition at line 118 of file DNA_sdna_types.h.
Referenced by blender::DNA_sdna_alias_data_ensure_structs_map(), blender::DNA_sdna_patch_struct(), blender::DNA_struct_find_index_with_alias_ex(), blender::DNA_struct_find_index_without_alias_ex(), and blender::init_structDNA().