Blender V5.0
DNA_sdna_pointers.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BLI_vector.hh"
8
9#include "DNA_sdna_types.h"
10
12
18 const char *member_type_name = nullptr;
19 const char *name = nullptr;
20};
21
29
34 private:
36 const SDNA &sdna_;
38 Vector<StructInfo> structs_;
39
40 public:
41 explicit PointersInDNA(const SDNA &sdna);
42
43 const StructInfo &get_for_struct(const int struct_nr) const
44 {
45 return structs_[struct_nr];
46 }
47
48 private:
49 void gather_pointer_members_recursive(const SDNA_Struct &sdna_struct,
50 int initial_offset,
51 StructInfo &r_struct_info) const;
52};
53
54} // namespace blender::dna::pointers
long long int int64_t
const StructInfo & get_for_struct(const int struct_nr) const