Lumiera
0.pre.03
»edit your freedom«
|
#include "/Werk/devel/lumi/tests/vault/gear/test-chain-load.hpp"
Policy/Binding for generation of random parameters by »drawing« based on the node-hash.
Notably this policy template maps the ways to spell out »Ctrl rules« to configure the probability profile of the topology parameters seeding, expansion, reduction and pruning. The RandomDraw component used to implement those rules provides a builder-DSL and accepts λ-bindings in various forms to influence mapping of Node hash into result parameters.
Definition at line 908 of file test-chain-load.hpp.
Classes | |
struct | Adaptor |
Adaptor to handle further mapping functions. More... | |
struct | Adaptor< RES(double)> |
rules may also build solely on the (guessed) height. More... | |
struct | Adaptor< RES(size_t)> |
allow simple rules directly manipulating the hash value More... | |
struct | Adaptor< RES(size_t, double)> |
allow rules additionally involving the height of the graph, which also represents time. More... | |
Static Protected Member Functions | |
static size_t | defaultSrc (Node *node) |
by default use Node-hash directly as source of randomness | |
static double | guessHeight (size_t level) |
static size_t | level (Node *node) |
struct vault::gear::test::TestChainLoad::NodeControlBinding::Adaptor |