diff trunk/src/docgen/graphutils/writers.d @ 459:1b5f1ce09f38

Fix to the image cache, cleaned stuff.
author Jari-Matti M?kel? <jmjm@iki.fi>
date Tue, 30 Oct 2007 16:58:17 +0200
parents 33a4cb255fcc
children db7e27b5c180
line wrap: on
line diff
--- a/trunk/src/docgen/graphutils/writers.d	Tue Oct 30 15:44:05 2007 +0200
+++ b/trunk/src/docgen/graphutils/writers.d	Tue Oct 30 16:58:17 2007 +0200
@@ -28,21 +28,22 @@
   }
 }
 
-class DefaultCachingGraphWriterFactory : AbstractWriterFactory, GraphWriterFactory {
+class DefaultCachingGraphWriterFactory : AbstractWriterFactory, CachingGraphWriterFactory {
   CachingDocGenerator generator;
 
   this(CachingDocGenerator generator) {
     super(generator);
+    this.generator = generator;
   }
 
-  char[] getCachedGraph(Vertex[] vertices, Edge[] edges, GraphFormat format) {
-    return generator.getCachedGraph(vertices, edges, format);
+  GraphCache graphCache() {
+    return generator.graphCache;
   }
 
   GraphWriter createGraphWriter(PageWriter writer, GraphFormat outputFormat) {
     switch (outputFormat) {
       case GraphFormat.Dot:
-        return new DotWriter(this, writer);
+        return new CachingDotWriter(this, writer);
       case GraphFormat.ModuleNames:
         return new ModuleNameWriter(this, writer);
       case GraphFormat.ModulePaths: