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

#include <ref_counted_ptr.h>

Public Member Functions

Tget () const
 
template<typename Y >
bool operator!= (const RefCountedPtr< Y > &other) const
 
template<typename Y >
bool operator!= (const Y *other) const
 
bool operator!= (std::nullptr_t) const
 
Toperator* () const
 
Toperator-> () const
 
RefCountedPtroperator= (const RefCountedPtr &other)
 
template<typename Y >
RefCountedPtroperator= (const RefCountedPtr< Y > &other)
 
RefCountedPtroperator= (RefCountedPtr &&other) noexcept
 
template<typename Y >
RefCountedPtroperator= (RefCountedPtr< Y > &&other) noexcept
 
template<typename Y >
bool operator== (const RefCountedPtr< Y > &other) const
 
template<typename Y >
bool operator== (const Y *other) const
 
bool operator== (std::nullptr_t) const
 
 RefCountedPtr ()
 
 RefCountedPtr (const RefCountedPtr &other)
 
template<typename Y >
 RefCountedPtr (const RefCountedPtr< Y > &other)
 
 RefCountedPtr (RefCountedPtr &&other) noexcept
 
template<typename Y >
 RefCountedPtr (RefCountedPtr< Y > &&other) noexcept
 
 RefCountedPtr (std::nullptr_t)
 
template<typename Y >
 RefCountedPtr (Y *value)
 
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 (RefCountedPtr &other)
 
 ~RefCountedPtr ()
 

Private Attributes

Tvalue_ = nullptr
 

Friends

template<typename Y >
class RefCountedPtr
 

Detailed Description

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

Definition at line 35 of file ref_counted_ptr.h.

Constructor & Destructor Documentation

◆ RefCountedPtr() [1/7]

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

Definition at line 37 of file ref_counted_ptr.h.

◆ RefCountedPtr() [2/7]

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

Definition at line 39 of file ref_counted_ptr.h.

◆ RefCountedPtr() [3/7]

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

Definition at line 43 of file ref_counted_ptr.h.

◆ RefCountedPtr() [4/7]

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

Definition at line 46 of file ref_counted_ptr.h.

◆ RefCountedPtr() [5/7]

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

Definition at line 52 of file ref_counted_ptr.h.

◆ RefCountedPtr() [6/7]

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

Definition at line 71 of file ref_counted_ptr.h.

◆ RefCountedPtr() [7/7]

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

Definition at line 77 of file ref_counted_ptr.h.

◆ ~RefCountedPtr()

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

Definition at line 104 of file ref_counted_ptr.h.

Member Function Documentation

◆ get()

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

Definition at line 146 of file ref_counted_ptr.h.

◆ operator!=() [1/3]

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

Definition at line 164 of file ref_counted_ptr.h.

◆ operator!=() [2/3]

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

Definition at line 169 of file ref_counted_ptr.h.

◆ operator!=() [3/3]

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

Definition at line 173 of file ref_counted_ptr.h.

◆ operator*()

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

Definition at line 148 of file ref_counted_ptr.h.

◆ operator->()

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

Definition at line 149 of file ref_counted_ptr.h.

◆ operator=() [1/4]

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

Definition at line 86 of file ref_counted_ptr.h.

◆ operator=() [2/4]

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

Definition at line 94 of file ref_counted_ptr.h.

◆ operator=() [3/4]

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

Definition at line 58 of file ref_counted_ptr.h.

◆ operator=() [4/4]

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

Definition at line 64 of file ref_counted_ptr.h.

◆ operator==() [1/3]

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

Definition at line 152 of file ref_counted_ptr.h.

◆ operator==() [2/3]

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

Definition at line 157 of file ref_counted_ptr.h.

◆ operator==() [3/3]

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

Definition at line 161 of file ref_counted_ptr.h.

◆ release()

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

Definition at line 140 of file ref_counted_ptr.h.

◆ reset() [1/4]

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

Definition at line 115 of file ref_counted_ptr.h.

◆ reset() [2/4]

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

Definition at line 128 of file ref_counted_ptr.h.

◆ reset() [3/4]

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

Definition at line 111 of file ref_counted_ptr.h.

◆ reset() [4/4]

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

Definition at line 121 of file ref_counted_ptr.h.

◆ swap()

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

Definition at line 108 of file ref_counted_ptr.h.

Friends And Related Function Documentation

◆ RefCountedPtr

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

Definition at line 177 of file ref_counted_ptr.h.

Member Data Documentation

◆ value_

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

Definition at line 179 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