diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-04-15 19:11:42 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-04-15 19:11:42 +0200 |
| commit | 6d4dbbd5cafce3435ca4c7aae020ba17e5a89b87 (patch) | |
| tree | bcf93a7e475dff5b1a7797a271c94d1a45782c37 /modules/codec/c++/schema_meta.hpp | |
| parent | b1a45e4e1c7ef45b95316443f67c8904a9d5b959 (diff) | |
| download | forstio-forstio-6d4dbbd5cafce3435ca4c7aae020ba17e5a89b87.tar.gz | |
Diffstat (limited to 'modules/codec/c++/schema_meta.hpp')
| -rw-r--r-- | modules/codec/c++/schema_meta.hpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/codec/c++/schema_meta.hpp b/modules/codec/c++/schema_meta.hpp index ff66bbb..efa486d 100644 --- a/modules/codec/c++/schema_meta.hpp +++ b/modules/codec/c++/schema_meta.hpp @@ -23,8 +23,8 @@ struct meta_schema<schema::Bool> { template<typename T, uint64_t N> struct meta_schema<schema::Primitive<T,N>> { - using MetaSchema = schema::Void; using Schema = schema::Primitive<T,N>; + using MetaSchema = schema::Void; }; template<typename TA, uint64_t NA, typename TB, uint64_t NB> @@ -35,38 +35,38 @@ struct meta_schema<schema::MixedPrecision<schema::Primitive<TA,NA>, schema::Prim template<typename T> struct meta_schema<schema::Ref<T>> { - using MetaSchema = schema::Void; using Schema = schema::Ref<T>; + using MetaSchema = schema::Void; }; template<typename Key, typename Value> struct meta_schema<schema::Map<Key,Value>> { - using MetaSchema = schema::Void; using Schema = schema::Map<Key,Value>; + using MetaSchema = schema::Void; }; template<typename... T, string_literal... Lit> struct meta_schema<schema::Struct<schema::Member<T,Lit>...>> { - using MetaSchema = schema::Struct<schema::Member<typename meta_schema<T>::MetaSchema,Lit>...>; using Schema = schema::Struct<schema::Member<T,Lit>...>; + using MetaSchema = schema::Struct<schema::Member<typename meta_schema<T>::MetaSchema,Lit>...>; }; template<typename... T, string_literal... Lit> struct meta_schema<schema::Union<schema::Member<T,Lit>...>> { - using MetaSchema = schema::Union<schema::Member<typename meta_schema<T>::MetaSchema,Lit>...>; using Schema = schema::Union<schema::Member<T,Lit>...>; + using MetaSchema = schema::Union<schema::Member<typename meta_schema<T>::MetaSchema,Lit>...>; }; template<typename... T> struct meta_schema<schema::Tuple<T...>> { - using MetaSchema = schema::Tuple<typename meta_schema<T>::MetaSchema...>; using Schema = schema::Tuple<T...>; + using MetaSchema = schema::Tuple<typename meta_schema<T>::MetaSchema...>; }; template<> struct meta_schema<schema::String> { - using MetaSchema = schema::UInt64; using Schema = schema::String; + using MetaSchema = schema::UInt64; }; /** @@ -75,14 +75,14 @@ struct meta_schema<schema::String> { template<typename T, uint64_t Dim> struct meta_schema<schema::Array<T,Dim>> { // TODO Technically this should be a FixedArray of the inner meta schema, except when the inner meta schema is Void - using MetaSchema = schema::FixedArray<schema::UInt64,Dim>; using Schema = schema::Array<T,Dim>; + using MetaSchema = schema::FixedArray<schema::UInt64,Dim>; }; template<typename T, uint64_t... Dim> struct meta_schema<schema::FixedArray<T,Dim...>> { // TODO Technically this should be a FixedArray of the inner meta schema, except when the inner meta schema is Void - using MetaSchema = schema::Void; using Schema = schema::FixedArray<T,Dim...>; + using MetaSchema = schema::Void; }; } |
