ucx/avl.h

changeset 255
bf19378aed58
parent 128
649eb328674a
child 314
8722a668fb2a
equal deleted inserted replaced
254:d7c4ba50b7d8 255:bf19378aed58
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2015 Olaf Wintermann. All rights reserved. 4 * Copyright 2016 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
42 #ifndef UCX_AVL_H 42 #ifndef UCX_AVL_H
43 #define UCX_AVL_H 43 #define UCX_AVL_H
44 44
45 #include "ucx.h" 45 #include "ucx.h"
46 #include "allocator.h" 46 #include "allocator.h"
47 #include <stdint.h> 47 #include <inttypes.h>
48 48
49 #ifdef __cplusplus 49 #ifdef __cplusplus
50 extern "C" { 50 extern "C" {
51 #endif 51 #endif
52 52
132 * @return a new UcxAVLTree object 132 * @return a new UcxAVLTree object
133 */ 133 */
134 UcxAVLTree *ucx_avl_new_a(cmp_func cmpfunc, UcxAllocator *allocator); 134 UcxAVLTree *ucx_avl_new_a(cmp_func cmpfunc, UcxAllocator *allocator);
135 135
136 /** 136 /**
137 * Destroys an UcxAVLTree. 137 * Destroys a UcxAVLTree.
138 * @param tree the tree to destroy 138 * @param tree the tree to destroy
139 */ 139 */
140 void ucx_avl_free(UcxAVLTree *tree); 140 void ucx_avl_free(UcxAVLTree *tree);
141 141
142 /** 142 /**

mercurial