-
Notifications
You must be signed in to change notification settings - Fork 0
/
List.h
52 lines (35 loc) · 926 Bytes
/
List.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
51
52
//
// List.h
// DoubleLinkList
//
// Created by Jeffrey Johnston on 9/23/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Node.h"
//#import "NodeFactory.h"
// Interface for the List.m
// Declares the head pointer for our DLL
@interface List : NSObject
{
Node *head;
}
// dynamic, assign
@property (nonatomic, assign) Node *head;
// Method declaration for print
-(void) print;
// Method declaration for addNode
// Takes a node pointer
-(void) addNode: (Node *) inNode;
// Method declaration for locateNodeByChar
// Takse a char and returns a pointer to the
// associated node
-(Node *) locateNodeByChar: (char) lookupChar;
// Method declaration for removeNodeFromList
// Takes a node pointer
-(void) removeNodeFromList: (Node *) removeNode;
// Method declaration for sortList
-(void) sortList;
// Method declaration for freeList
-(void) freeList;
@end