From ecc512ba388a04c84cef639cead2273934b485db Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 4 May 2026 13:12:56 +0200 Subject: Writing down an idea --- modules/codec/c++/tas.hpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 modules/codec/c++/tas.hpp diff --git a/modules/codec/c++/tas.hpp b/modules/codec/c++/tas.hpp new file mode 100644 index 0000000..f130119 --- /dev/null +++ b/modules/codec/c++/tas.hpp @@ -0,0 +1,38 @@ +#pragma once + +#include "data.hpp" + +namespace saw { +namespace schema { +/** + * Tuple of Arrays of Structs => TAS + * + * So the idea is that I have an iterable data structure + * with filter what the members contain. + * + * So lets say I want to iterate over every body with the + * attribute "age", but not every object + * contains the member age and not every object with age + * are identical to each other. + * + * And if I want to avoid inheritance I need something to + * handle it. + * Which would be this object. + * + * I need enforcement over attribute equality. + * Only forward checks are needed. + * + */ +template +struct Tas {}; +} + +template +class data, Encoding> final { +public: + using Schema = schema::Tas; +private: + data, Encoding> inner_; +public: +}; +} -- cgit v1.2.3