OLD | NEW |
(Empty) | |
| 1 // -*- mode: ObjC -*- |
| 2 |
| 3 // This file is part of class-dump, a utility for examining the Objective-C seg
ment of Mach-O files. |
| 4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard. |
| 5 |
| 6 #import <Foundation/Foundation.h> |
| 7 #import "CDTopologicalSortProtocol.h" |
| 8 |
| 9 typedef enum { |
| 10 CDWhiteNodeColor = 0, |
| 11 CDGrayNodeColor = 1, |
| 12 CDBlackNodeColor = 2, |
| 13 } CDNodeColor; |
| 14 |
| 15 @interface CDTopoSortNode : NSObject |
| 16 { |
| 17 id <CDTopologicalSort> sortableObject; |
| 18 |
| 19 NSMutableSet *dependancies; |
| 20 CDNodeColor color; |
| 21 } |
| 22 |
| 23 - (id)initWithObject:(id <CDTopologicalSort>)anObject; |
| 24 - (void)dealloc; |
| 25 |
| 26 - (NSString *)identifier; |
| 27 - (id <CDTopologicalSort>)sortableObject; |
| 28 |
| 29 - (NSArray *)dependancies; |
| 30 - (void)addDependancy:(NSString *)anIdentifier; |
| 31 - (void)removeDependancy:(NSString *)anIdentifier; |
| 32 - (void)addDependanciesFromArray:(NSArray *)identifiers; |
| 33 |
| 34 - (CDNodeColor)color; |
| 35 - (void)setColor:(CDNodeColor)newColor; |
| 36 |
| 37 - (NSString *)description; |
| 38 |
| 39 - (NSComparisonResult)ascendingCompareByIdentifier:(id)otherNode; |
| 40 - (void)topologicallySortNodes:(NSDictionary *)nodesByIdentifier intoArray:(NSMu
tableArray *)sortedArray; |
| 41 |
| 42 @end |
OLD | NEW |