avlikeyless.h 1.7 KB

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