Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
IteratorProducer< T, I > Class Template Reference

#include <elm/sys/JobScheduler.h>

+ Inheritance diagram for IteratorProducer< T, I >:

Public Member Functions

 IteratorProducer (const I &iter)
 
virtual Jobnext (void)
 
virtual void harvest (Job *job)
 
virtual void harvest (T *job)
 
- Public Member Functions inherited from JobProducer
virtual ~JobProducer (void)
 

Constructor & Destructor Documentation

◆ IteratorProducer()

IteratorProducer ( const I &  iter)
inline

Member Function Documentation

◆ harvest() [1/2]

virtual void harvest ( Job job)
inlinevirtual

Called in a mutual exclusive way by the thread that performed the job to let the used process the result of the job.

Reimplemented from JobProducer.

References IteratorProducer< T, I >::harvest().

Referenced by IteratorProducer< T, I >::harvest().

◆ harvest() [2/2]

virtual void harvest ( T *  job)
inlinevirtual

◆ next()

virtual Job* next ( void  )
inlinevirtual

Get the next job to be processed.

Returns
Next job or null.

Implements JobProducer.


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