home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / classlib.zip / pm.zip / usr / include / pm / list.h < prev    next >
C/C++ Source or Header  |  1994-08-31  |  480b  |  32 lines

  1. #ifndef _LIST_H_
  2. #define _LIST_H_
  3.  
  4. #include <objc/os2.h>
  5. #include <objc/Object.h>
  6.  
  7. @interface List : Object
  8. {
  9.   ULONG  key;
  10.   void  *data;
  11.   List  *next;
  12. }
  13.  
  14. - init: (ULONG) aKey data: (void *) aData;
  15. - free;
  16.  
  17. - insert: (List *) element;
  18. - (int) compare: (List *) elem1 with: (List *) elem2;
  19.  
  20. - find: (ULONG) aKey;
  21.  
  22. - setKey: (ULONG) aKey;
  23. - setData: (void *) aData;
  24. - setNext: (List *) element;
  25. - (ULONG) key;
  26. - (void *) data;
  27. - next;
  28.  
  29. @end
  30.  
  31. #endif
  32.