GRPC C++  1.39.1
Public Member Functions | Friends
grpc_core::RefCountedPtr< T > Class Template Reference

#include <ref_counted_ptr.h>

Public Member Functions

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

Friends

template<typename Y >
class RefCountedPtr
 

Constructor & Destructor Documentation

◆ RefCountedPtr() [1/7]

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

◆ RefCountedPtr() [2/7]

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

◆ RefCountedPtr() [3/7]

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

◆ RefCountedPtr() [4/7]

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

◆ RefCountedPtr() [5/7]

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

◆ RefCountedPtr() [6/7]

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

◆ RefCountedPtr() [7/7]

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

◆ ~RefCountedPtr()

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

Member Function Documentation

◆ get()

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

◆ operator!=() [1/3]

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

◆ operator!=() [2/3]

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

◆ operator!=() [3/3]

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

◆ operator*()

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

◆ operator->()

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

◆ operator=() [1/4]

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

◆ operator=() [2/4]

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

◆ operator=() [3/4]

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

◆ operator=() [4/4]

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

◆ operator==() [1/3]

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

◆ operator==() [2/3]

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

◆ operator==() [3/3]

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

◆ release()

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

◆ reset() [1/4]

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

◆ 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

◆ reset() [3/4]

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

◆ reset() [4/4]

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

◆ swap()

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

Friends And Related Function Documentation

◆ RefCountedPtr

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

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