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.

30 lines
638 B

  1. // List.h: interface for the List class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_LIST_H__8579C184_3703_4719_8FCB_5A91A9CA7E4E__INCLUDED_)
  5. #define AFX_LIST_H__8579C184_3703_4719_8FCB_5A91A9CA7E4E__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "Object.h"
  10. class List
  11. {
  12. public:
  13. Object* head,*tail;
  14. int length;
  15. List();
  16. virtual ~List();
  17. void Add(Object* o);
  18. void Remove(TCHAR* s);
  19. Object* Find(Object* o);
  20. Object* Find(TCHAR* s);
  21. };
  22. #endif // !defined(AFX_LIST_H__8579C184_3703_4719_8FCB_5A91A9CA7E4E__INCLUDED_)