summaryrefslogtreecommitdiffstats
path: root/include/framework
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-07-26 13:51:06 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-07-26 13:51:06 -0400
commitf462921cbc52688fb478c6ac86a891e596fd6053 (patch)
tree06ff6fc589bcdc63db4b82fbbe77ec00900bacfd /include/framework
parenta522ebbc055a654b117bb0e1dfdd5d2e30b87b70 (diff)
downloaddynamic-extension-f462921cbc52688fb478c6ac86a891e596fd6053.tar.gz
Alex shard progress
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];