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

#include <orphanable.h>

Public Member Functions

 InternallyRefCounted (const InternallyRefCounted &)=delete
 
InternallyRefCountedoperator= (const InternallyRefCounted &)=delete
 
- Public Member Functions inherited from grpc_core::Orphanable
virtual void Orphan ()=0
 
 Orphanable (const Orphanable &)=delete
 
Orphanableoperator= (const Orphanable &)=delete
 

Protected Member Functions

template<typename TraceFlagT = TraceFlag>
 InternallyRefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1)
 
virtual ~InternallyRefCounted ()=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)
 
- Protected Member Functions inherited from grpc_core::Orphanable
 Orphanable ()
 
virtual ~Orphanable ()
 

Friends

template<typename T >
class RefCountedPtr
 

Constructor & Destructor Documentation

◆ InternallyRefCounted() [1/2]

template<typename Child>
grpc_core::InternallyRefCounted< Child >::InternallyRefCounted ( const InternallyRefCounted< Child > &  )
delete

◆ InternallyRefCounted() [2/2]

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

◆ ~InternallyRefCounted()

template<typename Child>
virtual grpc_core::InternallyRefCounted< Child >::~InternallyRefCounted ( )
protectedvirtualdefault

Member Function Documentation

◆ operator=()

template<typename Child>
InternallyRefCounted& grpc_core::InternallyRefCounted< Child >::operator= ( const InternallyRefCounted< Child > &  )
delete

◆ Ref() [1/2]

template<typename Child>
RefCountedPtr<Child> grpc_core::InternallyRefCounted< Child >::Ref ( )
inlineprotected

◆ Ref() [2/2]

template<typename Child>
RefCountedPtr<Child> grpc_core::InternallyRefCounted< Child >::Ref ( const DebugLocation location,
const char *  reason 
)
inlineprotected

◆ Unref() [1/2]

template<typename Child>
void grpc_core::InternallyRefCounted< Child >::Unref ( )
inlineprotected

◆ Unref() [2/2]

template<typename Child>
void grpc_core::InternallyRefCounted< Child >::Unref ( const DebugLocation location,
const char *  reason 
)
inlineprotected

Friends And Related Function Documentation

◆ RefCountedPtr

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

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