XDispatch 0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
xdispatch::operation Class Reference

An operation is a functor used to define single portions of work to be dispatched to a single queue. More...

#include <xdispatch/base.h>

+ Inheritance diagram for xdispatch::operation:

List of all members.

Public Member Functions

 operation ()
virtual ~operation ()
virtual void operator() ()=0
virtual void auto_delete (bool a)
 Change the auto_delete flag to prevent the iteration from being deleted after finishing its execution.
virtual bool auto_delete () const

Detailed Description

An operation is a functor used to define single portions of work to be dispatched to a single queue.

Derive from this class and implement the operator to create specific operations that can be executed on a queue.

Definition at line 48 of file base.h.


Constructor & Destructor Documentation

Definition at line 51 of file base.h.

virtual xdispatch::operation::~operation ( ) [inline, virtual]

Definition at line 52 of file base.h.


Member Function Documentation

virtual void xdispatch::operation::auto_delete ( bool  a) [inline, virtual]

Change the auto_delete flag to prevent the iteration from being deleted after finishing its execution.

Defaults to true

Definition at line 61 of file base.h.

virtual bool xdispatch::operation::auto_delete ( ) const [inline, virtual]
Returns:
the current auto_delete flag
See also:
set_auto_delete();

Definition at line 66 of file base.h.

virtual void xdispatch::operation::operator() ( ) [pure virtual]

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

Generated on Tue Jun 12 2012 14:11:48 for XDispatch by Doxygen 1.8.0
© 2010-2012 MLBA (about | privacy) All Rights reserved.