From 80944ab956dd6e734dd160476959ac21c40479af Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Tue, 1 Sep 2026 22:13:48 +0200 Subject: [PATCH] Parameter: now able to define the complete implementation layout - `Disposition` is the service-API used by the front-End container - `ParamData` is a complete implementation with a inline-value buffer - The front-End is based on the `PolymorphicValue` container from our support-Lib --- src/lib/par/parameter.hpp | 9 +++++++++ tests/lib/par/parameter-test.cpp | 2 ++ wiki/thinkPad.ichthyo.mm | 11 +++++++++-- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/lib/par/parameter.hpp b/src/lib/par/parameter.hpp index 608294087..2ebe47539 100644 --- a/src/lib/par/parameter.hpp +++ b/src/lib/par/parameter.hpp @@ -29,11 +29,19 @@ #define LIB_PAR_PARAMETER_H +#include "lib/par/disposition.hpp" +#include "lib/polymorphic-value.hpp" namespace lib { namespace par { + namespace { + static constexpr size_t BUFF_SIZ = sizeof(ParamData); + using ParameterImplAPI = Disposition; + using CopySupportMarker = polyvalue::CopySupport; + using ParamContainer = PolymorphicValue; + } /** @@ -41,6 +49,7 @@ namespace par { * The value can be fixed or supplied by an automation function. */ class Parameter + : protected ParamContainer { public: class Builder; diff --git a/tests/lib/par/parameter-test.cpp b/tests/lib/par/parameter-test.cpp index 070257908..3c5058d6d 100644 --- a/tests/lib/par/parameter-test.cpp +++ b/tests/lib/par/parameter-test.cpp @@ -20,6 +20,7 @@ //#include "test/test-helper.hpp" #include "lib/par/parameter.hpp" //#include "lib/format-cout.hpp" +#include "test/diagnostic-output.hpp"/////////////TODO //#include //#include @@ -76,6 +77,7 @@ namespace test{ void simpleUsage() { +SHOW_EXPR(sizeof(Parameter)) Parameter par = Parameter::forType().build(); CHECK (0 == par.getVal()); diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 20b8fc209..5e8132043 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -84451,13 +84451,14 @@ - + - + + @@ -84476,6 +84477,12 @@ + + + + + +