| // -*- mode: ObjC -*- | |
| // This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files. | |
| // Copyright (C) 1997-2019 Steve Nygard. | |
| #import "CDTopologicalSortProtocol.h" | |
| typedef enum : NSUInteger { | |
| CDNodeColor_White = 0, | |
| CDNodeColor_Gray = 1, | |
| CDNodeColor_Black = 2, | |
| } CDNodeColor; | |
| @interface CDTopoSortNode : NSObject | |
| - (id)initWithObject:(id <CDTopologicalSort>)object; | |
| @property (nonatomic, readonly) NSString *identifier; | |
| @property (readonly) id <CDTopologicalSort> sortableObject; | |
| - (NSArray *)dependancies; | |
| - (void)addDependancy:(NSString *)identifier; | |
| - (void)removeDependancy:(NSString *)identifier; | |
| - (void)addDependanciesFromArray:(NSArray *)identifiers; | |
| @property (nonatomic, readonly) NSString *dependancyDescription; | |
| @property (assign) CDNodeColor color; | |
| - (NSComparisonResult)ascendingCompareByIdentifier:(CDTopoSortNode *)other; | |
| - (void)topologicallySortNodes:(NSDictionary *)nodesByIdentifier intoArray:(NSMutableArray *)sortedArray; | |
| @end |