Blender
V5.3
source
blender
editors
asset
intern
asset_library_reference.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11
#pragma once
12
13
#include "
BLI_hash.hh
"
14
15
#include "
DNA_asset_types.h
"
16
17
namespace
blender
{
18
19
inline
bool
operator==
(
const
AssetLibraryReference
&a,
const
AssetLibraryReference
&
b
)
20
{
21
return
(a.
type
==
b
.type) &&
22
((a.
type
==
ASSET_LIBRARY_CUSTOM
) ? (a.
custom_library_index
==
b
.custom_library_index) :
23
true
);
24
}
25
26
template
<>
struct
DefaultHash
<
AssetLibraryReference
> {
27
uint64_t
operator()
(
const
AssetLibraryReference
&value)
const
28
{
29
return
get_default_hash
(value.
type
, value.
custom_library_index
);
30
}
31
};
32
33
}
// namespace blender
BLI_hash.hh
DNA_asset_types.h
b
b
Definition
compositor_morphological_distance_infos.hh:36
blender::bke::path_templates::operator==
bool operator==(const Error &left, const Error &right)
Definition
path_templates.cc:187
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::uint64_t
unsigned __int64 uint64_t
Definition
BKE_text.h:91
blender::ASSET_LIBRARY_CUSTOM
@ ASSET_LIBRARY_CUSTOM
Definition
DNA_asset_types.h:41
blender::get_default_hash
constexpr uint64_t get_default_hash(const T &v, const Args &...args)
Definition
BLI_hash.hh:252
blender::AssetLibraryReference
Definition
DNA_asset_types.h:176
blender::AssetLibraryReference::type
eAssetLibraryType type
Definition
DNA_asset_types.h:177
blender::AssetLibraryReference::custom_library_index
int custom_library_index
Definition
DNA_asset_types.h:184
blender::DefaultHash< AssetLibraryReference >::operator()
uint64_t operator()(const AssetLibraryReference &value) const
Definition
asset_library_reference.hh:27
blender::DefaultHash
Definition
BLI_hash.hh:85
Generated on
for Blender by
doxygen
1.18.0