home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / btree / IXPostingSet.h < prev    next >
Text File  |  1992-07-17  |  2KB  |  70 lines

  1. /*
  2. IXPostingSet.h
  3. Copyright 1991,NeXT Computer,Inc.
  4. */
  5.  
  6. #import    <objc/Object.h>
  7. #import "protocols.h"
  8.  
  9. #ifndef    RELEASE_2
  10. @interface IXPostingSet: Object <IXPostingExchange, IXPostingOperations>
  11. #else    RELEASE_2
  12. @interface IXPostingSet: Object
  13. #endif    RELEASE_2
  14. {
  15. @public
  16.     unsigned        thisElement;
  17.     unsigned         numElements;
  18.     unsigned         maxElements;
  19.     IXPosting        *postings;
  20. }
  21.  
  22. #ifndef    RELEASE_2
  23. - initWithPostingsIn:(id <IXPostingExchange>)anObject;
  24. #else    RELEASE_2
  25. - initWithPostingsIn:anObject;
  26. #endif    RELEASE_2
  27. - initCount:(unsigned)theCount 
  28.     andPostings:(const IXPosting *)thePostings;
  29.  
  30. #ifdef    RELEASE_2
  31. - formUnionWithPostingsIn:anObject;
  32. - formIntersectionWithPostingsIn:anObject;
  33. - subtractPostingsIn:anObject;
  34. #else    RELEASE_2
  35. - formUnionWithPostingsIn:(id <IXPostingExchange>)anObject;
  36. - formIntersectionWithPostingsIn:(id <IXPostingExchange>)anObject;
  37. - subtractPostingsIn:(id <IXPostingExchange>)anObject;
  38. #endif    RELEASE_2
  39.  
  40. - (unsigned)setPosition:(unsigned)aPosition;
  41. - setCount:(unsigned)theCount 
  42.     andPostings:(IXPosting *)thePostings byCopy:(BOOL)aBoolean;
  43.  
  44. #0f    RELEASE_2
  45.  
  46. // @protocol IXPostingOperations
  47.  
  48. - addHandle:(unsigned)handle withWeight:(unsigned)weight;
  49. - removeHandle:(unsigned)handle;
  50.  
  51. - (unsigned)count;
  52. - empty;
  53.  
  54. - (unsigned)setFirstHandle;
  55. - (unsigned)setNextHandle;
  56.  
  57. - (unsigned)setHandle:(unsigned)handle;
  58. - (unsigned)getHandle:(unsigned *)handle 
  59.     andWeight:(unsigned *)weight;
  60.  
  61. // @protocol IXPostingExchange
  62.  
  63. - getCount:(unsigned *)theCount andPostings:(IXPosting **)thePostings;
  64. - setCount:(unsigned)theCount andPostings:(const IXPosting *)thePostings;
  65.  
  66. #endif    RELEASE_2
  67.  
  68. @end
  69.  
  70.