Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

DetachFinalizer Class Template Reference

#include <coherence/lang/DetachFinalizer.hpp>

Inherits FinalizableBlock::Finalizer.

List of all members.


Detailed Description

template<class T>
class coherence::lang::DetachFinalizer< T >

Finalizer which detaches from an Object upon deletion.

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.
DetachFinalizerset (T *pDetach, bool fEscaped=true)
 Set the Object which the finalizer will detach from.


Constructor & Destructor Documentation

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.

Parameters:
 pDetach pointer to Object to detach from during finalization
 fEscaped if the attachment was escaped


Member Function Documentation

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.

Parameters:
 pDetach the Object to detach from upon destruction
 fEscaped if the attachment was escaped
Returns:
a pointer to this DetachFinalizer


The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.