summaryrefslogtreecommitdiff
path: root/modules/codec/c++/schema.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/codec/c++/schema.hpp')
-rw-r--r--modules/codec/c++/schema.hpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/codec/c++/schema.hpp b/modules/codec/c++/schema.hpp
index 018cb41..b5839f4 100644
--- a/modules/codec/c++/schema.hpp
+++ b/modules/codec/c++/schema.hpp
@@ -114,7 +114,7 @@ class Ref {
* data<Ptr<Float64>> type.
*/
template<typename Schema>
-class Ptr {
+struct Ptr {
static constexpr string_literal name = "Ptr";
using ValueType = Schema;
@@ -178,6 +178,18 @@ struct MixedPrecision {
static_assert(is_primitive<PrimA>::value, "InterfaceSchema needs to be a Primitive");
static_assert(is_primitive<PrimB>::value, "StorageSchema needs to be a Primitive");
};
+/**
+ * Classes enabling IdMap stuff
+ */
+template<typename T>
+struct Id {
+ using Schema = Id;
+};
+
+template<typename T>
+struct IdMap {
+ using Schema = IdMap<T>;
+};
/**
* Classes enabling Rpc calls