While the role of all the relevant interfaces has been determined, it still remains difficult to establish a sensible relationship. Which one is the most fundamental interface? After a lot of mulling, it seems that the `Provision` interface should be used as foundation, since it describes the very core of the parameter concept developed here -- even while the actual form of the operations must be ''somewhat cunningly reversed'', so that the knowledge regarding the underlying type can be kept an opaque implementation detail. The `Domain` interface would then be layered on top, and describes the capability to transfer values between buffers marked with different domains (which effectively requires a double-dispatch in the general case).
91 lines
1.7 KiB
C++
91 lines
1.7 KiB
C++
/*
|
||
ParameterProvision(Test) - verify parameter value provision and automation
|
||
|
||
Copyright (C)
|
||
2026, Hermann Vosseler <Ichthyostega@web.de>
|
||
|
||
**Lumiera** is free software; you can redistribute it and/or modify it
|
||
under the terms of the GNU General Public License as published by the
|
||
Free Software Foundation; either version 2 of the License, or (at your
|
||
option) any later version. See the file COPYING for further details.
|
||
|
||
* *****************************************************************/
|
||
|
||
/** @file parameter-provision-test.cpp
|
||
** unit test \ref ParameterProvision_test
|
||
*/
|
||
|
||
|
||
#include "test/run.hpp"
|
||
//#include "test/test-helper.hpp"
|
||
#include "lib/par/parameter.hpp"
|
||
//#include "lib/format-cout.hpp"
|
||
|
||
//#include <utility>
|
||
//#include <string>
|
||
//#include <vector>
|
||
|
||
//using std::string;
|
||
//using std::vector;
|
||
//using std::swap;
|
||
|
||
|
||
namespace lib {
|
||
namespace par {
|
||
namespace test{
|
||
|
||
// using lumiera::error::LUMIERA_ERROR_LOGIC;
|
||
|
||
namespace {//Test fixture....
|
||
|
||
|
||
}//(End)Test fixture
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/**************************************************************************//**
|
||
* @test document behaviour of parameter value provision and automation.
|
||
*/
|
||
class ParameterProvision_test : public Test
|
||
{
|
||
|
||
virtual void
|
||
run (Arg)
|
||
{
|
||
simpleUsage();
|
||
verify_Value();
|
||
verify_Function();
|
||
}
|
||
|
||
|
||
void
|
||
simpleUsage()
|
||
{
|
||
}
|
||
|
||
|
||
void
|
||
verify_Value()
|
||
{
|
||
}
|
||
|
||
|
||
void
|
||
verify_Function()
|
||
{
|
||
}
|
||
};
|
||
|
||
|
||
/** Register this test class... */
|
||
LAUNCHER (ParameterProvision_test, "unit lib");
|
||
|
||
|
||
|
||
}}} // namespace lib::par::test
|