00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Cocoa/Cocoa.h>
00010
00012
00015 @interface Node : NSObject {
00016 NSMutableArray* children;
00017 Node* parent;
00018 NSString* word;
00019 NSUInteger count;
00020 NSUInteger countOfLeaves;
00021 BOOL hasPointAsParent;
00023
00025 CGPoint pos;
00026 }
00027
00028 @property (readonly) NSString* word;
00029 @property (readonly) NSArray* children;
00030 @property (retain) Node* parent;
00031 @property (readonly) NSUInteger count;
00032 @property (readonly) NSUInteger countOfLeaves;
00033 @property BOOL hasPointAsParent;
00034 @property CGPoint pos;
00035
00036 -(id) initWithString:(NSString*) aWord;
00037 -(void) addChild:(Node*) node;
00039
00041 -(void) sortArrays;
00042
00043 -(void) incCount;
00044 -(void) incCountOfLeaves;
00045
00046
00047
00048 @end