![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "/Werk/devel/lumi/tests/vault/gear/test-chain-load.hpp"
Render JobFunctor to invoke the calculation of a single Node.
The existing Node connectivity is used to retrieve the hash values from predecessors — so these are expected to be calculated beforehand. For setup, the start of the ChainLoad's Node array is required.
| maxFan | controls expected Node memory layout |
Definition at line 1579 of file test-chain-load.hpp.
Public Member Functions | |
| RandomChainCalcFunctor (Node &startNode, ComputationalLoad *load=nullptr, Watch *watch=nullptr) | |
| void | invokeJobOperation (JobParameter param) override |
| render job invocation to trigger one Node recalculation | |
| string | diagnostic () const override |
Public Member Functions inherited from JobClosure | |
| virtual | ~JobClosure () |
| this is an interface | |
| lib::HashVal | hash_value (JobParameter) const |
Public Member Functions inherited from JobFunctor | |
| virtual | ~JobFunctor () |
| this is an interface | |
| operator std::string () const | |
Private Types | |
| using | Node = TestChainLoad< maxFan >::Node |
| using | Watch = lib::IncidenceCount |
Private Attributes | |
| Node * | startNode_ |
| ComputationalLoad * | compuLoad_ |
| Watch * | watch_ |
Additional Inherited Members | |
Static Public Member Functions inherited from ChainFunctor | |
| static InvocationInstanceID | encodeNodeID (size_t idx) |
| package the node-index to invoke. | |
| static size_t | decodeNodeID (InvocationInstanceID invoKey) |
| static Time | encodeLevel (size_t level) |
| static size_t | decodeLevel (TimeValue nominalTime) |
|
inline |
Definition at line 1590 of file test-chain-load.hpp.
|
private |
Definition at line 1582 of file test-chain-load.hpp.
|
private |
Definition at line 1583 of file test-chain-load.hpp.
|
inlineoverridevirtual |
render job invocation to trigger one Node recalculation
Implements ChainFunctor.
Definition at line 1599 of file test-chain-load.hpp.
References RandomChainCalcFunctor< maxFan >::compuLoad_, ChainFunctor::decodeLevel(), ChainFunctor::decodeNodeID(), ComputationalLoad::invoke(), IncidenceCount::markEnter(), IncidenceCount::markLeave(), RandomChainCalcFunctor< maxFan >::startNode_, and RandomChainCalcFunctor< maxFan >::watch_.
Here is the call graph for this function:
|
inlineoverridevirtual |
Implements ChainFunctor.
Definition at line 1613 of file test-chain-load.hpp.
References util::showAdr(), and RandomChainCalcFunctor< maxFan >::startNode_.
Here is the call graph for this function:
|
private |
Definition at line 1585 of file test-chain-load.hpp.
Referenced by RandomChainCalcFunctor< maxFan >::diagnostic(), and RandomChainCalcFunctor< maxFan >::invokeJobOperation().
|
private |
Definition at line 1586 of file test-chain-load.hpp.
Referenced by RandomChainCalcFunctor< maxFan >::invokeJobOperation().
|
private |
Definition at line 1587 of file test-chain-load.hpp.
Referenced by RandomChainCalcFunctor< maxFan >::invokeJobOperation().
Inheritance diagram for RandomChainCalcFunctor< maxFan >:
Collaboration diagram for RandomChainCalcFunctor< maxFan >: