-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.h
50 lines (36 loc) · 942 Bytes
/
Node.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// Node.h
// DoubleLinkList
//
// Created by Jeffrey Johnston on 9/23/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class List;
//Interface for Node.m This declares the
//variables for our nodes.
//Pointers to the previous and next nodes.
//A pointer to the name of the node.
//The node alpha character.
//And the Morse code value.
@interface Node : NSObject
{
Node *next;
Node *prev;
NSString *name;
char c;
int value;
}
// dynamic, assign
@property (nonatomic, assign) NSString *name;
@property (nonatomic, assign) Node *next;
@property (nonatomic, assign) Node *prev;
@property char c;
@property int value;
//Method declaration for popNode.
-(void) popNode: (int) inValue: (char) inC: (NSString *) inName;
//Method declaration for generateNodes
+(List *) generateNodes: (List *) dList;
// Method declaration for print
-(void) print;
@end