Blender V5.0
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
18{
19 return (a.type == b.type) &&
20 ((a.type == ASSET_LIBRARY_CUSTOM) ? (a.custom_library_index == b.custom_library_index) :
21 true);
22}
23
24namespace blender {
25
28 {
29 return get_default_hash(value.type, value.custom_library_index);
30 }
31};
32
33} // namespace blender
@ ASSET_LIBRARY_CUSTOM
bool operator==(const AssetLibraryReference &a, const AssetLibraryReference &b)
unsigned long long int uint64_t
uint64_t get_default_hash(const T &v, const Args &...args)
Definition BLI_hash.hh:233
uint64_t operator()(const AssetLibraryReference &value) const