Blender V5.3
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
8
9#pragma once
10
11#include "BLI_vector.hh"
12
13#include "DNA_sdna_types.h"
14
16
25
35
40 private:
42 const SDNA &sdna_;
44 Vector<StructInfo> structs_;
45
46 public:
47 explicit PointersInDNA(const SDNA &sdna);
48
49 const StructInfo &get_for_struct(const int struct_nr) const
50 {
51 return structs_[struct_nr];
52 }
53
54 private:
55 void gather_pointer_members_recursive(const SDNA_Struct &sdna_struct,
56 int initial_offset,
57 StructInfo &r_struct_info) const;
58};
59
60} // namespace blender::dna::pointers
const StructInfo & get_for_struct(const int struct_nr) const
__int64 int64_t
Definition BKE_text.h:90
bool has_pointer_at_offset(int64_t offset) const