Source code of Windows XP (NT5)
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.

52 lines
800 B

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. sitem.hxx
  6. Abstract:
  7. Item template class.
  8. Author:
  9. Weihai Chen (WeihaiC) 06/29/98
  10. Revision History:
  11. --*/
  12. #ifndef _SITEM_H
  13. #define _SITEM_H
  14. //////////////////////////////////////////////////////////////////////
  15. //
  16. // sitem.h: template for the SingleList Item class.
  17. //
  18. //////////////////////////////////////////////////////////////////////
  19. template <class T> class CSingleItem
  20. {
  21. public:
  22. CSingleItem (void);
  23. CSingleItem (T);
  24. CSingleItem (T, CSingleItem<T> *);
  25. ~CSingleItem (void);
  26. void SetNext (CSingleItem<T> *);
  27. CSingleItem<T> * GetNext ();
  28. BOOL IsSame (T&);
  29. T GetData (void);
  30. private:
  31. T m_Data;
  32. CSingleItem<T> *m_Next;
  33. };
  34. #include "sitem.inl"
  35. #endif