nub::floating_ref< T > Class Template Reference

#include <nub/ref.h>

Collaboration diagram for nub::floating_ref< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 floating_ref (T *ptr)
T * operator-> () const throw ()
T & operator* () const throw ()
T * get () const throw ()


Detailed Description

template<class T>
class nub::floating_ref< T >

nub::floating_ref<T> is a ref-counted smart pointer that will NOT delete its pointee when exiting scope. This can be of use to clients who need to allow an object to be returned to a clean state (i.e. with ref count == 0), but need to ref the object temporarily. Since floating_ref should only be used in restricted scopes, copying and assignment are disallowed.

Definition at line 421 of file ref.h.


The documentation for this class was generated from the following file:

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:23 2008 by Doxygen version 1.5.5.