feat(policy): updateed policy system and added new reaction chains

Reacions chains now contain more information and are broken out in a more detailed fashion.
This commit is contained in:
2025-11-06 09:18:23 -05:00
parent dbb6934fe6
commit 534a44448b
10 changed files with 732 additions and 370 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
#include <functional>
#include "gridfire/exceptions/exceptions.h"
#include "gridfire/reaction/reaction.h"
@@ -62,4 +63,10 @@ namespace gridfire::utils {
return splitmix64(h);
}
template <typename T>
std::size_t hash_combine(std::size_t seed, const T& v) {
std::hash<T> hasher;
seed ^= hasher(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
return seed;
}
}