diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-02 18:55:50 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-02 18:55:50 +0100 |
| commit | de842630138b198bc80dfd50d221df86a0139a35 (patch) | |
| tree | 4752673e2c6cc68da91ca981ef98336574f1b5b5 /lib/core/c++/abstract | |
| parent | be2164a504bf8f825d7a76af9504633adcf2596f (diff) | |
| download | libs-lbm-de842630138b198bc80dfd50d221df86a0139a35.tar.gz | |
Adding work on abstract and vtk
Diffstat (limited to 'lib/core/c++/abstract')
| -rw-r--r-- | lib/core/c++/abstract/data.hpp | 31 | ||||
| -rw-r--r-- | lib/core/c++/abstract/templates.hpp | 4 |
2 files changed, 35 insertions, 0 deletions
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<typename StorageT, typename InterfaceT> +struct MixedPrecision { + using StorageType = StorageT; + using InterfaceType = InterfaceT; +}; + +template<typename PrimType, uint64_t N> +struct Primitive { + using PrimitiveType = PrimType; + static constexpr uint64_t Bytes = N; +}; + +template<typename T, uint64_t... Dims> +struct Array { + using InnerType = T; + static constexpr std::array<uint64_t,sizeof...(Dims)> 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 { +} |
