Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
915 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * pcy14Dec92: Changed Sortable to ApcSortable
  7. * cad31Aug93: removing compiler warnings
  8. * pcy08Apr94: Trim size, use static iterators, dead code removal
  9. */
  10. #ifndef __SLIST_H
  11. #define __SLIST_H
  12. #include "apc.h"
  13. #include "apcobj.h"
  14. #include "node.h"
  15. #include "list.h"
  16. #include "protlist.h"
  17. _CLASSDEF(List)
  18. _CLASSDEF(ApcSortable)
  19. _CLASSDEF(SortedList)
  20. _CLASSDEF(ProtectedSortedList)
  21. class SortedList : public List {
  22. protected:
  23. friend class ListIterator;
  24. public:
  25. SortedList();
  26. virtual ~SortedList() { Flush(); };
  27. virtual VOID Add( RObj ) {};
  28. virtual VOID Add( RApcSortable );
  29. };
  30. class ProtectedSortedList : public ProtectedList {
  31. protected:
  32. friend class ListIterator;
  33. public:
  34. ProtectedSortedList();
  35. virtual VOID Add( RObj ) {};
  36. virtual VOID Add( RApcSortable );
  37. };
  38. #endif