joque
task orchestration library
joque::job< T > Struct Template Reference

Implementation of job interface, storing the specific job type that shall be used. More...

#include <job.hpp>

+ Inheritance diagram for joque::job< T >:
+ Collaboration diagram for joque::job< T >:

Public Member Functions

 job (T thing)
 
inval_result is_invalidated () override
 Returns true in case the job is invalidated. More...
 
run_result run (const task &t) override
 Executes one run of the task. More...
 
- Public Member Functions inherited from joque::job_iface
virtual ~job_iface ()=default
 

Public Attributes

thing
 

Detailed Description

template<typename T>
struct joque::job< T >

Implementation of job interface, storing the specific job type that shall be used.

Uses job_traits of the job type to run specific behavior. Use the traits for any customization over overriding this.

Constructor & Destructor Documentation

◆ job()

template<typename T >
joque::job< T >::job ( thing)
inline

Member Function Documentation

◆ is_invalidated()

template<typename T >
inval_result joque::job< T >::is_invalidated ( )
inlineoverridevirtual

Returns true in case the job is invalidated.

Implements joque::job_iface.

References joque::job_traits< T >::is_invalidated(), and joque::job< T >::thing.

◆ run()

template<typename T >
run_result joque::job< T >::run ( const task )
inlineoverridevirtual

Executes one run of the task.

Implements joque::job_iface.

References joque::job_traits< T >::run(), and joque::job< T >::thing.

Member Data Documentation

◆ thing

template<typename T >
T joque::job< T >::thing

The documentation for this struct was generated from the following file: