net_instaweb::RefCountedPtr< T > Class Template Reference

#include "ref_counted_ptr.h"

Inheritance diagram for net_instaweb::RefCountedPtr< T >:
scoped_refptr

List of all members.

Public Member Functions

 RefCountedPtr (T *t)
template<class U >
 RefCountedPtr (const RefCountedPtr< U > &src)
bool unique () const
void clear ()
void reset (T *ptr)
void reset (const RefCountedPtr &src)

Detailed Description

template<class T>
class net_instaweb::RefCountedPtr< T >

Template class to help make reference-counted pointers. You can use a typedef or subclass RefCountedPtr<YourClass>. YourClass has to inherit off RefCounted<T>.


Member Function Documentation

template<class T>
bool net_instaweb::RefCountedPtr< T >::unique (  )  const [inline]

Determines whether any other RefCountedPtr objects share the same storage. This can be used to create copy-on-write semantics if desired.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:15 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3