|
Utility Library
C4Completable.h
class CompletableObjects inherit from theCompletable class when they perform a time-consuming task and wish to provide a mechanism for notifying the user of the object when such a task has been completed.
Definition
Member Functions
Template Parameters
Constructor
Completable class can only exist as a base class for another class.
Description
The Completable class encapsulates a completion procedure pointer and a data value which is passed to this completion procedure. The completion procedure is invoked when the Completable::CallCompletionProc function is called. This usually happens when a subclass of Completable completes a time consuming task and wishes to notify some other piece of code.Upon construction, the completion procedure is set to nullptr, causing calls to Completable::CallCompletionProc to have no effect.
|