avlkeyless.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_AVLKEYLESS_H
  21. #define _AAPL_AVLKEYLESS_H
  22. #include "compare.h"
  23. /**
  24. * \addtogroup avltree
  25. * @{
  26. */
  27. /**
  28. * \class AvlKeyless
  29. * \brief AVL tree that has no insert/find/remove functions that take a key.
  30. *
  31. * AvlKeyless is an implementation of the AVL tree rebalancing functionality
  32. * only. It provides the common code for the tiny AVL tree implementations.
  33. */
  34. /*@}*/
  35. #define BASE_EL(name) name
  36. #define AVLMEL_CLASSDEF class Element
  37. #define AVLMEL_TEMPDEF class Element
  38. #define AVLMEL_TEMPUSE Element
  39. #define AvlTree AvlKeyless
  40. #define AVL_KEYLESS
  41. #include "avlcommon.h"
  42. #undef BASE_EL
  43. #undef AVLMEL_CLASSDEF
  44. #undef AVLMEL_TEMPDEF
  45. #undef AVLMEL_TEMPUSE
  46. #undef AvlTree
  47. #undef AVL_KEYLESS
  48. #endif /* _AAPL_AVLKEYLESS_H */