GRPC Core  18.0.0
Public Member Functions | Friends
grpc_core::WeakRefCountedPtr< T > Class Template Reference

#include <ref_counted_ptr.h>

Public Member Functions

 WeakRefCountedPtr ()
 
 WeakRefCountedPtr (std::nullptr_t)
 
template<typename Y >
 WeakRefCountedPtr (Y *value)
 
 WeakRefCountedPtr (WeakRefCountedPtr &&other) noexcept
 
template<typename Y >
 WeakRefCountedPtr (WeakRefCountedPtr< Y > &&other) noexcept
 
WeakRefCountedPtroperator= (WeakRefCountedPtr &&other) noexcept
 
template<typename Y >
WeakRefCountedPtroperator= (WeakRefCountedPtr< Y > &&other) noexcept
 
 WeakRefCountedPtr (const WeakRefCountedPtr &other)
 
template<typename Y >
 WeakRefCountedPtr (const WeakRefCountedPtr< Y > &other)
 
WeakRefCountedPtroperator= (const WeakRefCountedPtr &other)
 
template<typename Y >
WeakRefCountedPtroperator= (const WeakRefCountedPtr< Y > &other)
 
 ~WeakRefCountedPtr ()
 
void swap (WeakRefCountedPtr &other)
 
void reset (T *value=nullptr)
 
void reset (const DebugLocation &location, const char *reason, T *value=nullptr)
 
template<typename Y >
void reset (Y *value=nullptr)
 
template<typename Y >
void reset (const DebugLocation &location, const char *reason, Y *value=nullptr)
 
T * release ()
 
T * get () const
 
T & operator* () const
 
T * operator-> () const
 
template<typename Y >
bool operator== (const WeakRefCountedPtr< Y > &other) const
 
template<typename Y >
bool operator== (const Y *other) const
 
bool operator== (std::nullptr_t) const
 
template<typename Y >
bool operator!= (const WeakRefCountedPtr< Y > &other) const
 
template<typename Y >
bool operator!= (const Y *other) const
 
bool operator!= (std::nullptr_t) const
 

Friends

template<typename Y >
class WeakRefCountedPtr
 

Constructor & Destructor Documentation

◆ WeakRefCountedPtr() [1/7]

template<typename T >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( )
inline

◆ WeakRefCountedPtr() [2/7]

template<typename T >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( std::nullptr_t  )
inline

◆ WeakRefCountedPtr() [3/7]

template<typename T >
template<typename Y >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( Y *  value)
inline

◆ WeakRefCountedPtr() [4/7]

template<typename T >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( WeakRefCountedPtr< T > &&  other)
inlinenoexcept

◆ WeakRefCountedPtr() [5/7]

template<typename T >
template<typename Y >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( WeakRefCountedPtr< Y > &&  other)
inlinenoexcept

◆ WeakRefCountedPtr() [6/7]

template<typename T >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( const WeakRefCountedPtr< T > &  other)
inline

◆ WeakRefCountedPtr() [7/7]

template<typename T >
template<typename Y >
grpc_core::WeakRefCountedPtr< T >::WeakRefCountedPtr ( const WeakRefCountedPtr< Y > &  other)
inline

◆ ~WeakRefCountedPtr()

template<typename T >
grpc_core::WeakRefCountedPtr< T >::~WeakRefCountedPtr ( )
inline

Member Function Documentation

◆ get()

template<typename T >
T* grpc_core::WeakRefCountedPtr< T >::get ( ) const
inline

◆ operator!=() [1/3]

template<typename T >
template<typename Y >
bool grpc_core::WeakRefCountedPtr< T >::operator!= ( const WeakRefCountedPtr< Y > &  other) const
inline

◆ operator!=() [2/3]

template<typename T >
template<typename Y >
bool grpc_core::WeakRefCountedPtr< T >::operator!= ( const Y *  other) const
inline

◆ operator!=() [3/3]

template<typename T >
bool grpc_core::WeakRefCountedPtr< T >::operator!= ( std::nullptr_t  ) const
inline

◆ operator*()

template<typename T >
T& grpc_core::WeakRefCountedPtr< T >::operator* ( ) const
inline

◆ operator->()

template<typename T >
T* grpc_core::WeakRefCountedPtr< T >::operator-> ( ) const
inline

◆ operator=() [1/4]

template<typename T >
WeakRefCountedPtr& grpc_core::WeakRefCountedPtr< T >::operator= ( const WeakRefCountedPtr< T > &  other)
inline

◆ operator=() [2/4]

template<typename T >
template<typename Y >
WeakRefCountedPtr& grpc_core::WeakRefCountedPtr< T >::operator= ( const WeakRefCountedPtr< Y > &  other)
inline

◆ operator=() [3/4]

template<typename T >
WeakRefCountedPtr& grpc_core::WeakRefCountedPtr< T >::operator= ( WeakRefCountedPtr< T > &&  other)
inlinenoexcept

◆ operator=() [4/4]

template<typename T >
template<typename Y >
WeakRefCountedPtr& grpc_core::WeakRefCountedPtr< T >::operator= ( WeakRefCountedPtr< Y > &&  other)
inlinenoexcept

◆ operator==() [1/3]

template<typename T >
template<typename Y >
bool grpc_core::WeakRefCountedPtr< T >::operator== ( const WeakRefCountedPtr< Y > &  other) const
inline

◆ operator==() [2/3]

template<typename T >
template<typename Y >
bool grpc_core::WeakRefCountedPtr< T >::operator== ( const Y *  other) const
inline

◆ operator==() [3/3]

template<typename T >
bool grpc_core::WeakRefCountedPtr< T >::operator== ( std::nullptr_t  ) const
inline

◆ release()

template<typename T >
T* grpc_core::WeakRefCountedPtr< T >::release ( )
inline

◆ reset() [1/4]

template<typename T >
void grpc_core::WeakRefCountedPtr< T >::reset ( const DebugLocation location,
const char *  reason,
T *  value = nullptr 
)
inline

◆ reset() [2/4]

template<typename T >
template<typename Y >
void grpc_core::WeakRefCountedPtr< T >::reset ( const DebugLocation location,
const char *  reason,
Y *  value = nullptr 
)
inline

◆ reset() [3/4]

template<typename T >
void grpc_core::WeakRefCountedPtr< T >::reset ( T *  value = nullptr)
inline

◆ reset() [4/4]

template<typename T >
template<typename Y >
void grpc_core::WeakRefCountedPtr< T >::reset ( Y *  value = nullptr)
inline

◆ swap()

template<typename T >
void grpc_core::WeakRefCountedPtr< T >::swap ( WeakRefCountedPtr< T > &  other)
inline

Friends And Related Function Documentation

◆ WeakRefCountedPtr

template<typename T >
template<typename Y >
friend class WeakRefCountedPtr
friend

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