Public Member Functions | Private Attributes | Friends | List of all members
grpc_core::WeakRefCountedPtr< T > Class Template Reference

#include <ref_counted_ptr.h>

Public Member Functions

Tget () 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
 
Toperator* () const
 
Toperator-> () const
 
WeakRefCountedPtroperator= (const WeakRefCountedPtr &other)
 
template<typename Y >
WeakRefCountedPtroperator= (const WeakRefCountedPtr< Y > &other)
 
WeakRefCountedPtroperator= (WeakRefCountedPtr &&other) noexcept
 
template<typename Y >
WeakRefCountedPtroperator= (WeakRefCountedPtr< Y > &&other) noexcept
 
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
 
Trelease ()
 
void reset (const DebugLocation &location, const char *reason, T *value=nullptr)
 
template<typename Y >
void reset (const DebugLocation &location, const char *reason, Y *value=nullptr)
 
void reset (T *value=nullptr)
 
template<typename Y >
void reset (Y *value=nullptr)
 
void swap (WeakRefCountedPtr &other)
 
 WeakRefCountedPtr ()
 
 WeakRefCountedPtr (const WeakRefCountedPtr &other)
 
template<typename Y >
 WeakRefCountedPtr (const WeakRefCountedPtr< Y > &other)
 
 WeakRefCountedPtr (std::nullptr_t)
 
 WeakRefCountedPtr (WeakRefCountedPtr &&other) noexcept
 
template<typename Y >
 WeakRefCountedPtr (WeakRefCountedPtr< Y > &&other) noexcept
 
template<typename Y >
 WeakRefCountedPtr (Y *value)
 
 ~WeakRefCountedPtr ()
 

Private Attributes

Tvalue_ = nullptr
 

Friends

template<typename Y >
class WeakRefCountedPtr
 

Detailed Description

template<typename T>
class grpc_core::WeakRefCountedPtr< T >

Definition at line 185 of file ref_counted_ptr.h.

Constructor & Destructor Documentation

◆ WeakRefCountedPtr() [1/7]

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

Definition at line 187 of file ref_counted_ptr.h.

◆ WeakRefCountedPtr() [2/7]

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

Definition at line 189 of file ref_counted_ptr.h.

◆ WeakRefCountedPtr() [3/7]

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

Definition at line 193 of file ref_counted_ptr.h.

◆ WeakRefCountedPtr() [4/7]

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

Definition at line 198 of file ref_counted_ptr.h.

◆ WeakRefCountedPtr() [5/7]

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

Definition at line 204 of file ref_counted_ptr.h.

◆ WeakRefCountedPtr() [6/7]

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

Definition at line 223 of file ref_counted_ptr.h.

◆ WeakRefCountedPtr() [7/7]

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

Definition at line 229 of file ref_counted_ptr.h.

◆ ~WeakRefCountedPtr()

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

Definition at line 256 of file ref_counted_ptr.h.

Member Function Documentation

◆ get()

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

Definition at line 298 of file ref_counted_ptr.h.

◆ operator!=() [1/3]

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

Definition at line 316 of file ref_counted_ptr.h.

◆ operator!=() [2/3]

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

Definition at line 321 of file ref_counted_ptr.h.

◆ operator!=() [3/3]

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

Definition at line 325 of file ref_counted_ptr.h.

◆ operator*()

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

Definition at line 300 of file ref_counted_ptr.h.

◆ operator->()

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

Definition at line 301 of file ref_counted_ptr.h.

◆ operator=() [1/4]

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

Definition at line 238 of file ref_counted_ptr.h.

◆ operator=() [2/4]

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

Definition at line 246 of file ref_counted_ptr.h.

◆ operator=() [3/4]

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

Definition at line 210 of file ref_counted_ptr.h.

◆ operator=() [4/4]

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

Definition at line 216 of file ref_counted_ptr.h.

◆ operator==() [1/3]

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

Definition at line 304 of file ref_counted_ptr.h.

◆ operator==() [2/3]

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

Definition at line 309 of file ref_counted_ptr.h.

◆ operator==() [3/3]

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

Definition at line 313 of file ref_counted_ptr.h.

◆ release()

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

Definition at line 292 of file ref_counted_ptr.h.

◆ reset() [1/4]

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

Definition at line 267 of file ref_counted_ptr.h.

◆ 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

Definition at line 280 of file ref_counted_ptr.h.

◆ reset() [3/4]

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

Definition at line 263 of file ref_counted_ptr.h.

◆ reset() [4/4]

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

Definition at line 273 of file ref_counted_ptr.h.

◆ swap()

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

Definition at line 260 of file ref_counted_ptr.h.

Friends And Related Function Documentation

◆ WeakRefCountedPtr

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

Definition at line 329 of file ref_counted_ptr.h.

Member Data Documentation

◆ value_

template<typename T >
T* grpc_core::WeakRefCountedPtr< T >::value_ = nullptr
private

Definition at line 331 of file ref_counted_ptr.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:37