#include <coherence/lang/DetachFinalizer.hpp>
Inherits FinalizableBlock::Finalizer.
The finalizer is templated allowing it to work with both const and non-const attachments.
Public Member Functions | |
DetachFinalizer (T *pDetach=NULL, bool fEscaped=true) | |
Construct a DetachFinalizer to automatically detach from a previously attached Object. | |
virtual | ~DetachFinalizer () |
Destruct the DetachFinalizer, detaching from the Object in the process. | |
DetachFinalizer * | set (T *pDetach, bool fEscaped=true) |
Set the Object which the finalizer will detach from. |
DetachFinalizer | ( | T * | pDetach = NULL , |
|
bool | fEscaped = true | |||
) | [inline] |
Construct a DetachFinalizer to automatically detach from a previously attached Object.
The caller must have an unmatched attachment to the Object.
pDetach | pointer to Object to detach from during finalization | |
fEscaped | if the attachment was escaped |
DetachFinalizer* set | ( | T * | pDetach, | |
bool | fEscaped = true | |||
) | [inline] |
Set the Object which the finalizer will detach from.
If there was already an Object associated with this finalizer, it will be detached as part of this call.
pDetach | the Object to detach from upon destruction | |
fEscaped | if the attachment was escaped |