From 1b553907f0d09671f7036a5cca1ff93021582d5c Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 3 Mar 2025 11:11:01 +0100 Subject: wip --- c++/descriptor.h | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'c++/descriptor.h') diff --git a/c++/descriptor.h b/c++/descriptor.h index 1d22f91..e1be1e9 100644 --- a/c++/descriptor.h +++ b/c++/descriptor.h @@ -4,14 +4,23 @@ namespace kel { namespace lbm { -namespace schema { +namespace sch { using namespace saw::schema; -template -struct Descriptor {}; +template +struct Descriptor { + static constexpr uint64_t D = D; + static constexpr uint64_t Q = Q; +}; -template -using CellType = FixedArray; +template +struct Field { + using Alias = Sch; + using Descriptor = Desc; + static constexpr uint64_t SC = SC; + static constexpr uint64_t DC = DC; + static constexpr uint64_t QC = QC; +}; /** * T... is restricted to Member schemas @@ -20,7 +29,7 @@ template using CellData = Struct< CellT... >; - +^ /** * T is an array of CellData */ @@ -28,11 +37,11 @@ template using Lattice = Array; } -template +template class df_info{}; template -class df_info> { +class df_info> { static constexpr std::array, 5> directions = {{ { 0, 0}, {-1, 0}, -- cgit v1.2.3