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.

52 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1991 - 1992.
  5. //
  6. // File: WIDARR.HXX
  7. //
  8. // Contents: Work ID array
  9. //
  10. // Classes: CWidArray
  11. //
  12. // History: 28-Oct-91 BartoszM Created
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. class CDocList;
  17. //+---------------------------------------------------------------------------
  18. //
  19. // Class: CWidArray
  20. //
  21. // Purpose: Counted array of work id's
  22. //
  23. // History: 13-Nov-91 BartoszM Created.
  24. //
  25. //----------------------------------------------------------------------------
  26. class CWidArray
  27. {
  28. public:
  29. CWidArray ( unsigned cnt );
  30. CWidArray ( CDocList& docList );
  31. ~CWidArray () { delete _table; }
  32. BOOL Find ( WORKID wid ) const;
  33. WORKID WorkId ( unsigned i ) const { return _table[i]; }
  34. unsigned Count() const { return _count; }
  35. private:
  36. unsigned _count;
  37. WORKID* _table;
  38. };