Blender
V5.0
source
blender
blenkernel
BKE_id_hash.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
#include <string>
6
#include <variant>
7
8
#include "
BKE_main.hh
"
9
10
#include "
BLI_map.hh
"
11
#include "
BLI_vector.hh
"
12
13
#include "
DNA_ID.h
"
14
15
namespace
blender::bke::id_hash
{
16
20
struct
ValidDeepHashes
{
21
Map<const ID *, IDHash>
hashes
;
22
};
23
24
struct
DeepHashErrors
{
28
VectorSet<std::string>
missing_files
;
29
34
VectorSet<std::string>
updated_files
;
35
};
36
37
using
IDHashResult
= std::variant<ValidDeepHashes, DeepHashErrors>;
38
44
IDHashResult
compute_linked_id_deep_hashes
(
const
Main
&bmain,
Span<const ID *>
root_ids);
45
47
std::string
id_hash_to_hex
(
const
IDHash
&
hash
);
48
49
}
// namespace blender::bke::id_hash
BKE_main.hh
BLI_map.hh
BLI_vector.hh
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
blender::Map
Definition
BLI_map.hh:129
blender::Span
Definition
BLI_span.hh:74
blender::VectorSet
Definition
BLI_vector_set.hh:92
blender::bke::id_hash
Definition
BKE_id_hash.hh:15
blender::bke::id_hash::IDHashResult
std::variant< ValidDeepHashes, DeepHashErrors > IDHashResult
Definition
BKE_id_hash.hh:37
blender::bke::id_hash::compute_linked_id_deep_hashes
IDHashResult compute_linked_id_deep_hashes(const Main &bmain, Span< const ID * > root_ids)
Definition
id_hash.cc:233
blender::bke::id_hash::id_hash_to_hex
std::string id_hash_to_hex(const IDHash &hash)
Definition
id_hash.cc:257
hash
#define hash
Definition
noise_c.cc:154
IDHash
Definition
DNA_ID.h:383
Main
Definition
BKE_main.hh:160
blender::bke::id_hash::DeepHashErrors
Definition
BKE_id_hash.hh:24
blender::bke::id_hash::DeepHashErrors::updated_files
VectorSet< std::string > updated_files
Definition
BKE_id_hash.hh:34
blender::bke::id_hash::DeepHashErrors::missing_files
VectorSet< std::string > missing_files
Definition
BKE_id_hash.hh:28
blender::bke::id_hash::ValidDeepHashes
Definition
BKE_id_hash.hh:20
blender::bke::id_hash::ValidDeepHashes::hashes
Map< const ID *, IDHash > hashes
Definition
BKE_id_hash.hh:21
Generated on
for Blender by
doxygen
1.16.1