summaryrefslogtreecommitdiffstats
path: root/include/framework
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework')
-rw-r--r--include/framework/RecordInterface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/framework/RecordInterface.h b/include/framework/RecordInterface.h
index cea9fbe..f0d9f5c 100644
--- a/include/framework/RecordInterface.h
+++ b/include/framework/RecordInterface.h
@@ -41,6 +41,12 @@ concept KVPInterface = RecordInterface<R> && requires(R r) {
};
template<typename R>
+concept AlexInterface = KVPInterface<R> && requires(R r) {
+ {r.key} -> std::convertible_to<size_t>;
+ {r.value} -> std::convertible_to<size_t>;
+};
+
+template<typename R>
concept WrappedInterface = RecordInterface<R> && requires(R r, R s, bool b) {
{r.header} -> std::convertible_to<uint32_t>;
r.rec;
@@ -117,6 +123,7 @@ struct WeightedRecord {
}
};
+
template <typename V, size_t D=2>
struct CosinePoint{
V data[D];