GRPC C++  1.8.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields
gpr_avl_vtable Struct Reference

vtable for the AVL tree The optional user_data is propagated from the top level gpr_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 gpr_avl_XXX API.

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

Field Documentation

long(* gpr_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

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

copy a key, returning new value

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

copy a value

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

destroy a key

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

destroy a value


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