GCGlib
0.04.228
GCG Graphics Engine
|
Generic abstract class for defining a job/task for using with GCGlib. It inherits gcgORDEREDNODE in order to be used in one linked list. More...
#include <gcg.h>
Public Member Functions | |
gcgJOB () | |
Constructs a valid and empty job. It is intended to be implemented by specialized classes. More... | |
virtual | ~gcgJOB () |
Destructs the job. It is intended to be implemented by specialized classes. The object is deleted by the GCGlib executor when run() returns. More... | |
virtual void | run ()=0 |
Absctract virtual method that must be implemented by specialized classes. This method is called by GCGlib executors to perform the job/task. When it returns, the job object is deleted automatically. | |
Public Member Functions inherited from gcgCLASS | |
void * | operator new (size_t size) |
Defines a new operator to be used by instatiations of GCGlib classes instead the global one. More... | |
void * | operator new (size_t size, const std::nothrow_t &) throw () |
Defines a new operator to be used by instantiations of GCGlib classes instead the global one. Returns a NULL pointer instead of throwing an exception if an error occurs. More... | |
void * | operator new[] (size_t size) |
Defines a new operator to be used by GCGlib array allocations instead the global one. More... | |
void * | operator new[] (size_t size, const std::nothrow_t &) throw () |
Defines a new operator to be used by vector allocations instead the global one. More... | |
void | operator delete (void *p) |
Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator. More... | |
void | operator delete (void *p, const std::nothrow_t &) throw () |
Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator. More... | |
void | operator delete[] (void *p) |
Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator. More... | |
void | operator delete[] (void *p, const std::nothrow_t &) throw () |
Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator. More... | |
Generic abstract class for defining a job/task for using with GCGlib. It inherits gcgORDEREDNODE in order to be used in one linked list.
The job/task must be defined in a specialization of this class that implements gcgJOB::run() method. Objects of this class are deleted when gcgJOB::run() returns to the GCGlib executor.
|
inline |
Constructs a valid and empty job. It is intended to be implemented by specialized classes.
|
inlinevirtual |