home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Temp / DataStructures / MiscPriorityQueue.h next >
Encoding:
Text File  |  1994-03-22  |  1017 b   |  36 lines

  1. //
  2. //    MiscPriorityQueue.h -- a Priority Queue
  3. //        Written by Doug McClure (c) 1994 by Doug McClure.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <appkit/appkit.h>
  15. #import <misckit/MiscSortedStorage.h>
  16.  
  17. @interface MiscPriorityQueue : MiscSortedStorage
  18. {
  19. }
  20.  
  21. - dequeue;
  22. - enqueue:anObject withPriority:(int)priority;
  23. - init;
  24. - initCount:(unsigned int)numSlots;
  25. - (BOOL)isEqual:anObject;
  26. - (unsigned)highestPriority;
  27. - (unsigned)lowestPriority;
  28. - objectAt:(unsigned)index;
  29. - (unsigned)priorityAt:(unsigned)index;
  30. - makeObjectsPerform:(SEL)aSelector;
  31. - makeObjectsPerform:(SEL)aSelector with:anObject;
  32. - read:(NXTypedStream *)stream;
  33. - write:(NXTypedStream *)stream;
  34.  
  35. @end
  36.