GRPC Core  9.0.0
Public Member Functions | Protected Member Functions | Friends
grpc_core::RefCounted< Child, Impl > Class Template Reference

#include <ref_counted.h>

Public Member Functions

 ~RefCounted ()=default
 
RefCountedPtr< Child > Ref () GRPC_MUST_USE_RESULT
 
RefCountedPtr< Child > Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
bool RefIfNonZero ()
 
bool RefIfNonZero (const DebugLocation &location, const char *reason)
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 

Protected Member Functions

template<typename TraceFlagT = TraceFlag>
 RefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1)
 

Friends

template<typename T >
class RefCountedPtr
 

Constructor & Destructor Documentation

◆ ~RefCounted()

template<typename Child, typename Impl = PolymorphicRefCount>
grpc_core::RefCounted< Child, Impl >::~RefCounted ( )
default

◆ RefCounted() [1/2]

template<typename Child, typename Impl = PolymorphicRefCount>
grpc_core::RefCounted< Child, Impl >::RefCounted ( const RefCounted< Child, Impl > &  )
delete

◆ RefCounted() [2/2]

template<typename Child, typename Impl = PolymorphicRefCount>
template<typename TraceFlagT = TraceFlag>
grpc_core::RefCounted< Child, Impl >::RefCounted ( TraceFlagT *  trace_flag = nullptr,
intptr_t  initial_refcount = 1 
)
inlineexplicitprotected

Member Function Documentation

◆ operator=()

template<typename Child, typename Impl = PolymorphicRefCount>
RefCounted& grpc_core::RefCounted< Child, Impl >::operator= ( const RefCounted< Child, Impl > &  )
delete

◆ Ref() [1/2]

template<typename Child, typename Impl = PolymorphicRefCount>
RefCountedPtr<Child> grpc_core::RefCounted< Child, Impl >::Ref ( )
inline

◆ Ref() [2/2]

template<typename Child, typename Impl = PolymorphicRefCount>
RefCountedPtr<Child> grpc_core::RefCounted< Child, Impl >::Ref ( const DebugLocation location,
const char *  reason 
)
inline

◆ RefIfNonZero() [1/2]

template<typename Child, typename Impl = PolymorphicRefCount>
bool grpc_core::RefCounted< Child, Impl >::RefIfNonZero ( )
inline

◆ RefIfNonZero() [2/2]

template<typename Child, typename Impl = PolymorphicRefCount>
bool grpc_core::RefCounted< Child, Impl >::RefIfNonZero ( const DebugLocation location,
const char *  reason 
)
inline

◆ Unref() [1/2]

template<typename Child, typename Impl = PolymorphicRefCount>
void grpc_core::RefCounted< Child, Impl >::Unref ( )
inline

◆ Unref() [2/2]

template<typename Child, typename Impl = PolymorphicRefCount>
void grpc_core::RefCounted< Child, Impl >::Unref ( const DebugLocation location,
const char *  reason 
)
inline

Friends And Related Function Documentation

◆ RefCountedPtr

template<typename Child, typename Impl = PolymorphicRefCount>
template<typename T >
friend class RefCountedPtr
friend

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