GRPC Core  9.0.0
Data Fields
grpc_avl_vtable Struct Reference

vtable for the AVL tree The optional user_data is propagated from the top level grpc_avl_XXX API. More...

#include <avl.h>

Data Fields

void(* destroy_key )(void *key, void *user_data)
 destroy a key More...
 
void *(* copy_key )(void *key, void *user_data)
 copy a key, returning new value More...
 
long(* compare_keys )(void *key1, void *key2, void *user_data)
 compare key1, key2; return <0 if key1 < key2, >0 if key1 > key2, 0 if key1 == key2 More...
 
void(* destroy_value )(void *value, void *user_data)
 destroy a value More...
 
void *(* copy_value )(void *value, void *user_data)
 copy a value More...
 

Detailed Description

vtable for the AVL tree The optional user_data is propagated from the top level grpc_avl_XXX API.

From the same API call, multiple vtable functions may be called multiple times.

Field Documentation

◆ compare_keys

long(* grpc_avl_vtable::compare_keys) (void *key1, void *key2, void *user_data)

compare key1, key2; return <0 if key1 < key2, >0 if key1 > key2, 0 if key1 == key2

◆ copy_key

void*(* grpc_avl_vtable::copy_key) (void *key, void *user_data)

copy a key, returning new value

◆ copy_value

void*(* grpc_avl_vtable::copy_value) (void *value, void *user_data)

copy a value

◆ destroy_key

void(* grpc_avl_vtable::destroy_key) (void *key, void *user_data)

destroy a key

◆ destroy_value

void(* grpc_avl_vtable::destroy_value) (void *value, void *user_data)

destroy a value


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