Defined in:Objects inherit from the
Completableclass 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.
template <class classType> class Completable
||Returns the completion callback function for an object.|
||Sets the completion callback function for an object.|
||Returns the cookie that is passed to the completion callback function.|
||Sets the cookie that is passed to the completion callback function.|
||Invokes the completion callback function for an object.|
||The type of the class which performs a completable action. This parameter should be the type of the class that inherits directly from the |
Completableclass encapsulates a completion callback function pointer and a data value that is passed to this function. The completion callback function is invoked when the
Completable::HandleCompletionfunction is called. This usually happens when a subclass of
Completablecompletes a time consuming task and needs to notify some other piece of code.
Upon construction, the completion callback function is set to
nullptr, causing calls to the
Completable::HandleCompletionfunction to have no effect.