GRPC C++
1.26.0
|
#include <slice_weak_hash_table.h>
Public Member Functions | |
SliceWeakHashTable ()=default | |
Use Create function instead of using this directly. More... | |
~SliceWeakHashTable ()=default | |
void | Add (const grpc_slice &key, T value) |
Add a mapping from key to value, taking ownership of key. More... | |
const T * | Get (const grpc_slice &key) const |
Returns the value from the table associated with / key or null if not found. More... | |
![]() | |
~RefCounted ()=default | |
RefCountedPtr< SliceWeakHashTable< T, Size > > | Ref () GRPC_MUST_USE_RESULT |
RefCountedPtr< SliceWeakHashTable< T, Size > > | Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT |
void | Unref () |
void | Unref (const DebugLocation &location, const char *reason) |
bool | RefIfNonZero () |
bool | RefIfNonZero (const DebugLocation &location, const char *reason) |
RefCounted (const RefCounted &)=delete | |
RefCounted & | operator= (const RefCounted &)=delete |
![]() | |
virtual | ~PolymorphicRefCount ()=default |
Static Public Member Functions | |
static RefCountedPtr< SliceWeakHashTable > | Create () |
Creates a new table of at most size entries. More... | |
Additional Inherited Members | |
![]() | |
RefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1) | |
|
default |
Use Create function instead of using this directly.
|
default |
|
inline |
Add a mapping from key to value, taking ownership of key.
This operation will always succeed. It may discard older entries.
|
inlinestatic |
Creates a new table of at most size entries.
|
inline |
Returns the value from the table associated with / key or null if not found.