ML Reference
ml::PageRequestProcessor Class Reference

A simple processor that takes one or even multiple tile requests and can process them iteratively. More...

#include <mlPageRequestProcessor.h>

Inheritance diagram for ml::PageRequestProcessor:
ml::PageRequestQueueInterface

List of all members.

Public Member Functions

void addRequestCursor (PageRequestCursor *cursor)
 Adds a cursor that should be processed via its cursor (the ownership stays with the caller).
MLErrorCode processAll ()
 Processes all requests until the cursors have traversed the whole tree and the queue is empty.
MLErrorCode process (double timeBudget)
 Process the requests for the given timeBudget given in seconds.
bool needsProcessing ()
 Returns if the tile request needs some more processing.
MLErrorCode processNextRequest (bool &moreWork)
 Processes the next calculate page request.
virtual void append (PageRequest *request)
 Implements PageRequestQueueInterface interface.
void removeCancelledRequests ()
 Removes all requests that are canceled and no longer needed.

Detailed Description

A simple processor that takes one or even multiple tile requests and can process them iteratively.

It can be stopped and resumed at any time, on the granularity of processNextRequest()

Definition at line 45 of file mlPageRequestProcessor.h.


Member Function Documentation

void ml::PageRequestProcessor::addRequestCursor ( PageRequestCursor *  cursor) [inline]

Adds a cursor that should be processed via its cursor (the ownership stays with the caller).

Definition at line 49 of file mlPageRequestProcessor.h.

virtual void ml::PageRequestProcessor::append ( PageRequest request) [virtual]

Implements PageRequestQueueInterface interface.

Implements ml::PageRequestQueueInterface.

bool ml::PageRequestProcessor::needsProcessing ( )

Returns if the tile request needs some more processing.

MLErrorCode ml::PageRequestProcessor::process ( double  timeBudget)

Process the requests for the given timeBudget given in seconds.

MLErrorCode ml::PageRequestProcessor::processAll ( )

Processes all requests until the cursors have traversed the whole tree and the queue is empty.

MLErrorCode ml::PageRequestProcessor::processNextRequest ( bool &  moreWork)

Processes the next calculate page request.

void ml::PageRequestProcessor::removeCancelledRequests ( )

Removes all requests that are canceled and no longer needed.


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