Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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.

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.

Public Member Functions

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


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 13:51:38 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4