home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Headers / misckit / MiscLinkedListNode.h < prev    next >
Encoding:
Text File  |  1994-03-23  |  1.5 KB  |  51 lines

  1. //
  2. //    MiscLinkedListNode.h -- internal class used by MiscLinkedList
  3. //        Written by Sean Luke Copyright (c) 1993, 1994 by Sean Luke.
  4. //        Additional methods and editing by Don Yacktman.
  5. //                Version 0.9.  All rights reserved.
  6. //
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This object is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15. #import <appkit/appkit.h>
  16.  
  17. @interface MiscLinkedListNode:Object <NXTransport>
  18.  
  19. /*     This is the object for nodes inserted in the 
  20.     generic linked list and all subclasses thereof.
  21.     The Linked list is really a doubly-linked list,
  22.     so the node has pointers to the next and previous
  23.     nodes!
  24. */    
  25.  
  26.  
  27. {
  28.     id the_object;                // id of object the node holds.  Inits to nil.
  29.     id the_next_node;            // pointer to the next node in the list
  30.     id the_previous_node;        // poitner to the previous node in the list
  31. }
  32.  
  33. - initObject: this_object;           // initializes node with object
  34.                                 // automatically.  Cannot verify
  35.                                 // that object is not null!
  36.                                 
  37. - freeObject;                    // frees the object we point to.  -free doesn't
  38. - getObject;
  39. - setObject: this_object;        // returns the new object
  40.  
  41. - getNext;
  42. - setNext: this_node;            // returns the new object
  43.  
  44. - getPrevious;
  45. - setPrevious: this_node;        // returns the new object
  46.  
  47. - read: (NXTypedStream*) stream;
  48. - write: (NXTypedStream*) stream;
  49.  
  50. @end
  51.