From de842630138b198bc80dfd50d221df86a0139a35 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 2 Feb 2026 18:55:50 +0100 Subject: Adding work on abstract and vtk --- lib/core/c++/abstract/data.hpp | 31 +++++++++++++++++++++++++++++++ lib/core/c++/abstract/templates.hpp | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 lib/core/c++/abstract/data.hpp create mode 100644 lib/core/c++/abstract/templates.hpp (limited to 'lib/core/c++/abstract') diff --git a/lib/core/c++/abstract/data.hpp b/lib/core/c++/abstract/data.hpp new file mode 100644 index 0000000..e8f1757 --- /dev/null +++ b/lib/core/c++/abstract/data.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include "templates.hpp" + +namespace kel { +namespace sch { +struct UnsignedInteger {}; +struct SignedInteger {}; +struct FloatingPoint {}; + +template +struct MixedPrecision { + using StorageType = StorageT; + using InterfaceType = InterfaceT; +}; + +template +struct Primitive { + using PrimitiveType = PrimType; + static constexpr uint64_t Bytes = N; +}; + +template +struct Array { + using InnerType = T; + static constexpr std::array Dimensions{Dims...}; +}; + + +} +} diff --git a/lib/core/c++/abstract/templates.hpp b/lib/core/c++/abstract/templates.hpp new file mode 100644 index 0000000..d4d4ace --- /dev/null +++ b/lib/core/c++/abstract/templates.hpp @@ -0,0 +1,4 @@ +#pragma once + +namespace kel { +} -- cgit v1.2.3