smack merge from tizen_2.1_smack
[external/ragel.git] / aapl / avlikeyless.h
1 /*
2  *  Copyright 2002, 2003 Adrian Thurston <thurston@complang.org>
3  */
4
5 /*  This file is part of Aapl.
6  *
7  *  Aapl is free software; you can redistribute it and/or modify it under the
8  *  terms of the GNU Lesser General Public License as published by the Free
9  *  Software Foundation; either version 2.1 of the License, or (at your option)
10  *  any later version.
11  *
12  *  Aapl is distributed in the hope that it will be useful, but WITHOUT ANY
13  *  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  *  FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
15  *  more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License
18  *  along with Aapl; if not, write to the Free Software Foundation, Inc., 59
19  *  Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */
21
22 #ifndef _AAPL_AVLIKEYLESS_H
23 #define _AAPL_AVLIKEYLESS_H
24
25 #include "compare.h"
26 #include "dlistmel.h"
27
28 /**
29  * \addtogroup avlitree
30  * @{
31  */
32
33 /**
34  * \class AvliKeyless
35  * \brief Linked AVL tree that has no insert/find/remove functions that take a
36  * key.
37  *
38  * AvliKeyless is an implementation of the AVL tree rebalancing functionality
39  * only. It provides the common code for the tiny AVL tree implementations.
40  */
41
42 /*@}*/
43
44 #define BASE_EL(name) name
45 #define BASELIST DListMel< Element, AvliTreeEl<Element> >
46 #define AVLMEL_CLASSDEF class Element
47 #define AVLMEL_TEMPDEF class Element
48 #define AVLMEL_TEMPUSE Element
49 #define AvlTree AvliKeyless
50 #define WALKABLE
51 #define AVL_KEYLESS
52
53 #include "avlcommon.h"
54
55 #undef BASE_EL
56 #undef BASELIST
57 #undef AVLMEL_CLASSDEF
58 #undef AVLMEL_TEMPDEF
59 #undef AVLMEL_TEMPUSE
60 #undef AvlTree
61 #undef WALKABLE
62 #undef AVL_KEYLESS
63
64 #endif /* _AAPL_AVLIKEYLESS_H */