#include <JobQueue.h>
Public Member Functions | |
JobQueue () | |
void | queueJob (JobPtr job, const Job::VariableMap &args=Job::VariableMap()) |
Queues a new job at the end of the list. | |
void | queueDynamicJob (const String &typeID, const Job::VariableMap &args=Job::VariableMap(), const Config &conig=Config()) |
Queues a new job dynamically created with the given type ID. | |
size_t | getJobCount () const |
Returns the number of queued jobs. | |
JobPtr | dequeueJob () |
Removes the first job from the queue and returns it. | |
void | clearJobs () |
Removes all the jobs from this queue. | |
void | executeFirst (const Job::VariableMap &args=Job::VariableMap()) |
Executes the first job on the queue, using the given arguments. | |
void | execute () |
Executes all the stored jobs in order. | |
void | execute (float32 limit) |
Executes each job in order until the given time limit is reached. | |
Classes | |
struct | JobInstance |
|
|
|
Removes all the jobs from this queue.
|
|
Removes the first job from the queue and returns it.
|
|
Executes each job in order until the given time limit is reached.
|
|
Executes all the stored jobs in order.
|
|
Executes the first job on the queue, using the given arguments. This function grabs the first queued job and execute it. The given arguments are overlaid over the stored arguments, and may override them on an individual basis.
|
|
Returns the number of queued jobs.
|
|
Queues a new job dynamically created with the given type ID. This function constructs a new job to put at the end of the queue with the given type ID. The args and the config given are used with this new job.
|
|
Queues a new job at the end of the list. The new job is added to the end of the list of jobs, and it is given the args and config passed in.
|