WPILibC++  2019.3.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
wpi::IntrusiveRefCntPtr< T > Class Template Reference

A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase. More...

#include <IntrusiveRefCntPtr.h>

Public Types

using element_type = T
 

Public Member Functions

 IntrusiveRefCntPtr (T *obj)
 
 IntrusiveRefCntPtr (const IntrusiveRefCntPtr &S)
 
 IntrusiveRefCntPtr (IntrusiveRefCntPtr &&S)
 
template<class X >
 IntrusiveRefCntPtr (IntrusiveRefCntPtr< X > &&S)
 
template<class X >
 IntrusiveRefCntPtr (const IntrusiveRefCntPtr< X > &S)
 
IntrusiveRefCntPtroperator= (IntrusiveRefCntPtr S)
 
T & operator* () const
 
T * operator-> () const
 
T * get () const
 
 operator bool () const
 
void swap (IntrusiveRefCntPtr &other)
 
void reset ()
 
void resetWithoutRelease ()
 

Friends

template<typename X >
class IntrusiveRefCntPtr
 

Detailed Description

template<typename T>
class wpi::IntrusiveRefCntPtr< T >

A smart pointer to a reference-counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase.

This class increments its pointee's reference count when it is created, and decrements its refcount when it's destroyed (or is changed to point to a different object).


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