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.

31 lines
617 B

  1. /*************************************************
  2. * queue.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. #ifndef _QUEUE_H_
  8. #define _QUEUE_H_
  9. class CQueue : public CObject
  10. {
  11. public:
  12. CQueue(int nSize);
  13. ~CQueue();
  14. BOOL IsEmpty();
  15. int Peek();
  16. int Get();
  17. BOOL Add(int nNdx);
  18. int Inc(int x);
  19. int Dec(int x);
  20. void Dump();
  21. protected:
  22. int* m_pQueue;
  23. int m_nFront;
  24. int m_nRear;
  25. int m_nSize;
  26. };
  27. #endif