35 #ifndef STEAM_ENGINE_JOB_TICKET_H 36 #define STEAM_ENGINE_JOB_TICKET_H 98 : prereqTicket{allocateTicket (node, allocateTicket)}
115 , invocationSeed(static_cast<JobClosure&>(func).buildInstanceID(seed))
142 return isnil (provision_.exitNode);
148 if (empty())
return false;
151 return not lumiera_invokey_eq (&util::unConst(provision_).invocationSeed, &empty)
152 and provision_.exitNode.isValid()
153 and util::and_all (provision_.prerequisites
154 ,[](
auto& pq){ return pq.prereqTicket.isValid(); });
167 : provision_.prerequisites.begin()
170 return prq.prereqTicket;
215 REQUIRE (not isnil (exitNode));
216 HashVal invoSeed = exitNode.getPipelineIdentity();
217 JobFunctor& func = exitNode.getInvocationFunctor();
218 Provision provisionSpec{func, exitNode, invoSeed};
219 for (
ExitNode const& preNode: exitNode.getPrerequisites())
220 provisionSpec.prerequisites.emplace(preNode, allocTicket);
221 return provisionSpec;
Basic set of definitions and includes commonly used together.
bool verifyInstance(JobFunctor &, InvocationInstanceID const &, Time) const
Helper for tests: verify the given invocation parameters match this JobTicket.
Intrusive single linked list, possibly taking ownership of node elements.
lumiera_uid * LUID
a Lumiera UID
Helper template(s) for creating Lumiera Forward Iterators.
Any copy and copy construction prohibited.
Effective top-level exit point to pull rendered data from the nodes network.
Steam-Layer implementation namespace root.
static JobTicket NOP
special »do nothing« JobTicket marker
Lumiera's internal time value datatype.
static InvocationInstanceID timeHash(Time, InvocationInstanceID const &)
Tag the precomputed invocation ID with the nominal frame time.
A top-level point in the render node network where data generation can be driven. ...
Another Lumiera Forward Iterator building block, based on incorporating a state type right into the i...
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
static Provision buildProvisionSpec(ExitNode const &, ALO &)
Intrusive single linked list with optional ownership.
Definition of a render job.
opaque ID attached to each individual job invocation.
size_t HashVal
a STL compatible hash value
Interface of the closure for frame rendering jobs.
Duration is the internal Lumiera time metric.
Individual frame rendering task, forwarding to a closure.
a family of time value like entities and their relationships.
auto transformIterator(IT const &src, FUN processingFunc)
Build a TransformIter: convenience free function shortcut, picking up the involved types automaticall...
Perform operations "for each element" of a collection.
auto getPrerequisites()
Core operation: iterate over the prerequisites, required to carry out a render operation based on thi...
execution plan for pulling a specific exit node.
Duration getExpectedRuntime()
Core operation: guess expected runtime for rendering.
Job createJobFor(Time nominalTime)
Core operation: build a concrete render job based on this blueprint.