Lumiera  0.pre.03
»edit your freedom«
MockJob Class Reference

#include "/Werk/devel/lumi/tests/core/steam/engine/mock-dispatcher.hpp"

Description

Mock setup for a render Job with NO action but built-in diagnostics.

Each invocation of such a MockJob will be logged internally and can be investigated and verified afterwards.

Definition at line 101 of file mock-dispatcher.hpp.

Public Member Functions

 MockJob (Time nominalTime, int additionalKey)
 
- Public Member Functions inherited from Job
 Job (JobClosure &specificJobDefinition, InvocationInstanceID invoKey, Time nominalFrameTime)
 
InvocationInstanceID getInvocationInstanceID () const
 
JobKind getKind () const
 find out about the classification of this job. More...
 
Time getNominalTime () const
 
void triggerJob () const
 
bool usesClosure (JobClosure const &) const
 

Static Public Member Functions

static JobClosuregetFunctor ()
 
static int invocationAdditionalKey (Job const &job)
 
static Time invocationNominalTime (Job const &job)
 
static Time invocationTime (Job const &job)
 
static bool isNopJob (Job const &)
 
static bool was_invoked (Job const &job)
 

Static Private Member Functions

static Job build ()
 uses random job definition values
 
static Job build (Time nominalTime, int additionalKey)
 

Member Function Documentation

◆ isNopJob()

bool isNopJob ( Job const &  job)
static

likewise to support the MockDispatcher diagnostics; locate here since this is a dedicated translation unit

Returns
true iff the job was defined in the typical way used by JobTicket to generate fill jobs for empty segments.
See also
JobTicket::JobTicket::createJobFor(nominalTime)

Definition at line 258 of file mock-dispatcher.cpp.

◆ getFunctor()

JobClosure & getFunctor ( )
static

for collaboration with other Mock/Dummy facilities

Definition at line 246 of file mock-dispatcher.cpp.

References steam::engine::test::anonymous_namespace{mock-dispatcher.cpp}::dummyClosure.

+ Inheritance diagram for MockJob:
+ Collaboration diagram for MockJob:

The documentation for this class was generated from the following files: