Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg > Class Template Reference

#include <orphanable.h>

Inheritance diagram for grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

 InternallyRefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 
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)
 
 ~InternallyRefCounted () override=default
 
- Protected Member Functions inherited from grpc_core::Orphanable
 Orphanable ()
 
virtual ~Orphanable ()
 

Private Member Functions

void IncrementRefCount ()
 
void IncrementRefCount (const DebugLocation &location, const char *reason)
 

Private Attributes

RefCount refs_
 

Friends

template<typename T >
class RefCountedPtr
 

Detailed Description

template<typename Child, UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
class grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >

Definition at line 73 of file orphanable.h.

Constructor & Destructor Documentation

◆ InternallyRefCounted() [1/2]

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

◆ InternallyRefCounted() [2/2]

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

Definition at line 85 of file orphanable.h.

◆ ~InternallyRefCounted()

template<typename Child , UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >::~InternallyRefCounted ( )
overrideprotecteddefault

Member Function Documentation

◆ IncrementRefCount() [1/2]

template<typename Child , UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
void grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >::IncrementRefCount ( )
inlineprivate

Definition at line 112 of file orphanable.h.

◆ IncrementRefCount() [2/2]

template<typename Child , UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
void grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >::IncrementRefCount ( const DebugLocation location,
const char *  reason 
)
inlineprivate

Definition at line 113 of file orphanable.h.

◆ operator=()

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

◆ Ref() [1/2]

template<typename Child , UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
RefCountedPtr<Child> grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >::Ref ( )
inlineprotected

Definition at line 90 of file orphanable.h.

◆ Ref() [2/2]

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

Definition at line 94 of file orphanable.h.

◆ Unref() [1/2]

template<typename Child , UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
void grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >::Unref ( )
inlineprotected

Definition at line 100 of file orphanable.h.

◆ Unref() [2/2]

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

Definition at line 105 of file orphanable.h.

Friends And Related Function Documentation

◆ RefCountedPtr

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

Definition at line 82 of file orphanable.h.

Member Data Documentation

◆ refs_

template<typename Child , UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
RefCount grpc_core::InternallyRefCounted< Child, UnrefBehaviorArg >::refs_
private

Definition at line 117 of file orphanable.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36