Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_GPRPP_ORPHANABLE_H
20 #define GRPC_CORE_LIB_GPRPP_ORPHANABLE_H
63 template <
typename T,
typename Deleter = OrphanableDelete>
66 template <
typename T,
typename...
Args>
72 template <
typename Child, UnrefBehavior UnrefBehaviorArg = kUnrefDelete>
87 :
refs_(initial_refcount, trace) {}
InternallyRefCounted(const InternallyRefCounted &)=delete
void Unref(const DebugLocation &location, const char *reason)
~InternallyRefCounted() override=default
#define T(upbtypeconst, upbtype, ctype, default_value)
RefCountedPtr< Child > Ref() GRPC_MUST_USE_RESULT
RefCountedPtr< Child > Ref(const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
InternallyRefCounted(const char *trace=nullptr, intptr_t initial_refcount=1)
void IncrementRefCount(const DebugLocation &location, const char *reason)
std::unique_ptr< T, Deleter > OrphanablePtr
OrphanablePtr< T > MakeOrphanable(Args &&... args)
InternallyRefCounted & operator=(const InternallyRefCounted &)=delete
Orphanable & operator=(const Orphanable &)=delete
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:36