GRPC C++  1.39.1
Public Member Functions | Protected Member Functions | Friends
grpc_core::RefCounted< Child, Impl, UnrefBehaviorArg > 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)
 
RefCountedPtr< Child > RefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< Child > RefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (const RefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Protected Member Functions

 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Friends

template<typename T >
class RefCountedPtr
 

Constructor & Destructor Documentation

◆ ~RefCounted()

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

◆ RefCounted() [1/2]

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

◆ RefCounted() [2/2]

template<typename Child , typename Impl = PolymorphicRefCount, UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
grpc_core::RefCounted< Child, Impl, UnrefBehaviorArg >::RefCounted ( const char *  trace = nullptr,
intptr_t  initial_refcount = 1 
)
inlineexplicitprotected

Member Function Documentation

◆ operator=()

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

◆ Ref() [1/2]

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

◆ Ref() [2/2]

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

◆ RefIfNonZero() [1/2]

template<typename Child , typename Impl = PolymorphicRefCount, UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
RefCountedPtr<Child> grpc_core::RefCounted< Child, Impl, UnrefBehaviorArg >::RefIfNonZero ( )
inline

◆ RefIfNonZero() [2/2]

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

◆ Unref() [1/2]

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

◆ Unref() [2/2]

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

Friends And Related Function Documentation

◆ RefCountedPtr

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

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