diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 17:58:26 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-17 17:58:26 +0000 |
commit | 6e8e84cdcb300092f93479d50e62479c83f1ac49 (patch) | |
tree | 65dabad9217ef0ad4e8ca388287d599b1e0125bf /tikzit/src/common/Graph.m | |
parent | 18c354ee32a605f50e094ab9c16099d3fde4cb88 (diff) |
Remove BasicMapTable
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@385 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/Graph.m')
-rw-r--r-- | tikzit/src/common/Graph.m | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tikzit/src/common/Graph.m b/tikzit/src/common/Graph.m index 293695a..63476f3 100644 --- a/tikzit/src/common/Graph.m +++ b/tikzit/src/common/Graph.m @@ -22,7 +22,6 @@ // #import "Graph.h" -#import "BasicMapTable.h" @implementation Graph @@ -45,8 +44,8 @@ if (dirty) { [inEdges release]; [outEdges release]; - inEdges = [[BasicMapTable alloc] init]; - outEdges = [[BasicMapTable alloc] init]; + inEdges = [[NSMapTable alloc] init]; + outEdges = [[NSMapTable alloc] init]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; @@ -483,7 +482,7 @@ - (Graph*)copyOfSubgraphWithNodes:(NSSet*)nds { [graphLock lock]; - BasicMapTable *newNds = [Graph nodeTableForNodes:nds]; + NSMapTable *newNds = [Graph nodeTableForNodes:nds]; Graph* newGraph = [[Graph graph] retain]; NSEnumerator *en = [newNds objectEnumerator]; @@ -710,8 +709,8 @@ return [[[self alloc] init] autorelease]; } -+ (BasicMapTable*)nodeTableForNodes:(NSSet*)nds { - BasicMapTable *tab = [BasicMapTable mapTable]; ++ (NSMapTable*)nodeTableForNodes:(NSSet*)nds { + NSMapTable *tab = [NSMapTable mapTableWithStrongToStrongObjects]; for (Node *n in nds) { Node *ncopy = [n copy]; [tab setObject:ncopy forKey:n]; @@ -720,8 +719,8 @@ return tab; } -+ (BasicMapTable*)edgeTableForEdges:(NSSet*)es { - BasicMapTable *tab = [BasicMapTable mapTable]; ++ (NSMapTable*)edgeTableForEdges:(NSSet*)es { + NSMapTable *tab = [NSMapTable mapTableWithStrongToStrongObjects]; for (Edge *e in es) { Edge *ecopy = [e copy]; [tab setObject:ecopy forKey:e]; |