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.

45 lines
615 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. slist.inl
  6. Abstract:
  7. Single linked list template class.
  8. Author:
  9. Weihai Chen (WeihaiC) 06/29/98
  10. Revision History:
  11. --*/
  12. #ifndef _SLIST_H
  13. #define _SLIST_H
  14. #include "csem.hxx"
  15. #include "sitem.hxx"
  16. template <class T> class CSingleList
  17. : public CCriticalSection
  18. {
  19. public:
  20. CSingleList( void );
  21. ~CSingleList( void );
  22. BOOL Insert ( T);
  23. BOOL Delete ( T);
  24. virtual T Find (T );
  25. protected:
  26. CSingleItem <T> m_Dummy;
  27. };
  28. #include "slist.inl"
  29. #endif