Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
grpc_slice_refcount Struct Reference

#include <slice_refcount_base.h>

Inheritance diagram for grpc_slice_refcount:
Inheritance graph
[legend]

Public Types

typedef void(* DestroyerFn) (grpc_slice_refcount *)
 

Public Member Functions

 grpc_slice_refcount ()=default
 
 grpc_slice_refcount (DestroyerFn destroyer_fn)
 
bool IsUnique () const
 
void Ref ()
 
void Unref ()
 

Static Public Member Functions

static grpc_slice_refcountNoopRefcount ()
 

Private Attributes

DestroyerFn destroyer_fn_ = nullptr
 
std::atomic< size_t > ref_ {1}
 

Detailed Description

Definition at line 25 of file slice_refcount_base.h.

Member Typedef Documentation

◆ DestroyerFn

typedef void(* grpc_slice_refcount::DestroyerFn) (grpc_slice_refcount *)

Definition at line 27 of file slice_refcount_base.h.

Constructor & Destructor Documentation

◆ grpc_slice_refcount() [1/2]

grpc_slice_refcount::grpc_slice_refcount ( )
default

◆ grpc_slice_refcount() [2/2]

grpc_slice_refcount::grpc_slice_refcount ( DestroyerFn  destroyer_fn)
inlineexplicit

Definition at line 40 of file slice_refcount_base.h.

Member Function Documentation

◆ IsUnique()

bool grpc_slice_refcount::IsUnique ( ) const
inline

Definition at line 53 of file slice_refcount_base.h.

◆ NoopRefcount()

static grpc_slice_refcount* grpc_slice_refcount::NoopRefcount ( )
inlinestatic

Definition at line 29 of file slice_refcount_base.h.

◆ Ref()

void grpc_slice_refcount::Ref ( )
inline

Definition at line 43 of file slice_refcount_base.h.

◆ Unref()

void grpc_slice_refcount::Unref ( )
inline

Definition at line 44 of file slice_refcount_base.h.

Member Data Documentation

◆ destroyer_fn_

DestroyerFn grpc_slice_refcount::destroyer_fn_ = nullptr
private

Definition at line 57 of file slice_refcount_base.h.

◆ ref_

std::atomic<size_t> grpc_slice_refcount::ref_ {1}
private

Definition at line 56 of file slice_refcount_base.h.


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


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