Blender V5.3
DNA_sdna_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
7
8#pragma once
9
10#include "BLI_array.hh"
12#include "BLI_map.hh"
13#include "BLI_string_ref.hh"
14#include "BLI_sys_types.hh"
15#include "BLI_vector.hh"
16
17namespace blender {
18
26#define SDNA_RAW_DATA_STRUCT_INDEX 0
27
28#
29#
32
37};
38
39#
40#
51
52#
53#
54struct SDNA {
56 const char *data = nullptr;
58 int data_size = 0;
59 bool data_alloc = false;
60
62 int pointer_size = 0;
63
64 /* ***** Start of SDNA types. ***** */
74 int types_num = 0;
78 short *types_size = nullptr;
85 /* ***** End of SDNA types. ***** */
86
87 /* ***** Start of SDNA structs. ***** */
96 /* ***** End of SDNA structs. ***** */
97
98 /* ***** Start of SDNA struct members. ***** */
100 int members_num = 0;
110 /* ***** End of SDNA struct members. ***** */
111
119
136
139
140 ~SDNA();
141};
142
143} // namespace blender
BMesh Iterators.
Vector< StringRef > members
Map< StringRef, int > types_to_structs_map
Array< StringRef > types
SDNA_StructMember members[]
Array< SDNA_Struct *, 0 > structs
Array< StringRef > types
Vector< short > members_array_num
LinearAllocator mem_arena
struct blender::SDNA::@276375047207276123200247134171113130103131113323 alias
Map< StringRef, int > types_to_structs_map
Array< int > types_alignment
const char * data
Vector< StringRef > members