GRPC C++  1.26.0
Public Types | Public Member Functions
grpc_core::RefCount Class Reference

#include <ref_counted.h>

Public Types

using Value = intptr_t
 

Public Member Functions

template<typename TraceFlagT = TraceFlag>
constexpr RefCount (Value init=1, TraceFlagT *trace_flag=nullptr)
 
void Ref (Value n=1)
 
void Ref (const DebugLocation &location, const char *reason, Value n=1)
 
void RefNonZero ()
 
void RefNonZero (const DebugLocation &location, const char *reason)
 
bool RefIfNonZero ()
 
bool RefIfNonZero (const DebugLocation &location, const char *reason)
 
bool Unref ()
 
bool Unref (const DebugLocation &location, const char *reason)
 

Member Typedef Documentation

◆ Value

using grpc_core::RefCount::Value = intptr_t

Constructor & Destructor Documentation

◆ RefCount()

template<typename TraceFlagT = TraceFlag>
constexpr grpc_core::RefCount::RefCount ( Value  init = 1,
TraceFlagT *  trace_flag = nullptr 
)
inlineexplicit

Member Function Documentation

◆ Ref() [1/2]

void grpc_core::RefCount::Ref ( Value  n = 1)
inline

◆ Ref() [2/2]

void grpc_core::RefCount::Ref ( const DebugLocation location,
const char *  reason,
Value  n = 1 
)
inline

◆ RefIfNonZero() [1/2]

bool grpc_core::RefCount::RefIfNonZero ( )
inline

◆ RefIfNonZero() [2/2]

bool grpc_core::RefCount::RefIfNonZero ( const DebugLocation location,
const char *  reason 
)
inline

◆ RefNonZero() [1/2]

void grpc_core::RefCount::RefNonZero ( )
inline

◆ RefNonZero() [2/2]

void grpc_core::RefCount::RefNonZero ( const DebugLocation location,
const char *  reason 
)
inline

◆ Unref() [1/2]

bool grpc_core::RefCount::Unref ( )
inline

◆ Unref() [2/2]

bool grpc_core::RefCount::Unref ( const DebugLocation location,
const char *  reason 
)
inline

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