source: trunk/include/k/kAvlU32.h@ 3

Last change on this file since 3 was 2, checked in by bird, 18 years ago

Imported http://svn.netlabs.org/repos/libc/trunk/kStuff, revision 3612.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 1.9 KB
Line 
1/* $Id: kAvlU32.h 2 2007-11-16 16:07:14Z bird $ */
2/** @file
3 * kAvl - AVL Tree Implementation, KU32 keys.
4 */
5
6/*
7 * Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net>
8 *
9 * This file is part of kStuff.
10 *
11 * kStuff is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
15 *
16 * kStuff is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with kStuff; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 *
25 */
26
27#ifndef ___k_kAvlU32_h___
28#define ___k_kAvlU32_h___
29
30typedef struct KAVLU32
31{
32 KU32 mKey;
33 KU8 mHeight;
34 struct KAVLU32 *mpLeft;
35 struct KAVLU32 *mpRight;
36} KAVLU32, *PKAVLU32, **PPKAVLU32;
37
38/*#define KAVL_EQUAL_ALLOWED*/
39#define KAVL_CHECK_FOR_EQUAL_INSERT
40#define KAVL_MAX_STACK 32
41/*#define KAVL_RANGE */
42/*#define KAVL_OFFSET */
43#define KAVL_STD_KEY_COMP
44#define KAVLKEY KU32
45#define KAVLNODE KAVLU32
46#define KAVL_FN(name) kAvlU32 ## name
47#define KAVL_TYPE(prefix,name) prefix ## KAVLU32 ## name
48#define KAVL_INT(name) KAVLU32INT ## name
49#define KAVL_DECL(rettype) K_DECL_INLINE(rettype)
50
51#include <k/kAvlTmpl/kAvlBase.h>
52#include <k/kAvlTmpl/kAvlDoWithAll.h>
53#include <k/kAvlTmpl/kAvlEnum.h>
54#include <k/kAvlTmpl/kAvlGet.h>
55#include <k/kAvlTmpl/kAvlGetBestFit.h>
56#include <k/kAvlTmpl/kAvlGetWithParent.h>
57#include <k/kAvlTmpl/kAvlRemove2.h>
58#include <k/kAvlTmpl/kAvlRemoveBestFit.h>
59#include <k/kAvlTmpl/kAvlUndef.h>
60
61#endif
62
Note: See TracBrowser for help on using the repository browser.