home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
sampl254.zip
/
gcc2
/
samples
/
sample5
/
Queue.h
< prev
next >
Wrap
Text File
|
1993-11-07
|
433b
|
20 lines
// Queue.h - comp.lang.objective-c simple sample Objective-C program
#import <objc/Object.h>
#import "Node.h"
@interface Queue : Object
{
id head;
id tail;
unsigned qsize;
}
+ new; // create a new Queue
- empty; // clear out all contents of the Queue
- put: anItem; // put anItem on the Queue
- get; // return the item on top of the Queue
- (unsigned) size; // tell us the current size of the Queue
@end