File: BTree.h

package info (click to toggle)
gnustep-examples 1%3A1.0.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,952 kB
  • ctags: 280
  • sloc: objc: 15,345; makefile: 64
file content (43 lines) | stat: -rw-r--r-- 693 bytes parent folder | download
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
#import <Foundation/Foundation.h>
#import <AppKit/AppKit.h>


@interface BTree : NSObject
{
    BTree *first, *second, *parent;
    id leaf;
    int tag;
}

+ fromLines:(NSEnumerator *)en;

- initWithLeaf:(id)theLeaf;
- initWithPairFirst:(BTree *)fp andSecond:(BTree *)sp;

- leaf;
- (BTree *)first;
- (BTree *)second;
- (int)tag;

- setFirst:(BTree *)theFirst;
- setSecond:(BTree *)theSecond;

- setParent:(BTree *)theParent;
- parent;

- (BTree *)findLeaf:(id)theLeaf;

- (NSMutableArray *)leaves;

- inorderWithTarget:(id)t sel:(SEL)what;
- inorderWithPointer:(void *)ptr sel:(SEL)what;

- substituteLeaves:(NSMutableDictionary *)dict;

- (NSString *)toString;

- (void)deallocAll;

@end