Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-08 18:04:09 +0300
committerJacques Lucke <jacques@blender.org>2020-07-08 18:05:52 +0300
commit05365d1376760d70751243ae6360e2fd61f5a213 (patch)
treeae043de880c46cf25e02652bb3446c3e481ea941 /source/blender/functions/FN_multi_function_data_type.hh
parent2de5de57c58521862e0fecc95fc474ea347b7468 (diff)
Functions: support hashing MFDataType and CPPType
Diffstat (limited to 'source/blender/functions/FN_multi_function_data_type.hh')
-rw-r--r--source/blender/functions/FN_multi_function_data_type.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/functions/FN_multi_function_data_type.hh b/source/blender/functions/FN_multi_function_data_type.hh
index 78f0d96fb80..57aea046006 100644
--- a/source/blender/functions/FN_multi_function_data_type.hh
+++ b/source/blender/functions/FN_multi_function_data_type.hh
@@ -108,6 +108,11 @@ class MFDataType {
BLI_assert(false);
return "";
}
+
+ uint hash() const
+ {
+ return DefaultHash<CPPType>{}(*type_) + (uint32_t)category_;
+ }
};
inline bool operator==(const MFDataType &a, const MFDataType &b)