The return of copying support
authorGary King <gwking@metabang.com>
Wed, 22 Mar 2006 15:25:18 +0000 (10:25 -0500)
committerGary King <gwking@metabang.com>
Wed, 22 Mar 2006 15:25:18 +0000 (10:25 -0500)
darcs-hash:20060322152518-3cc5d-94a611e48cf29d015351f357f074d664d9ab1e21.gz

cl-graph.asd
dev/copying.lisp [new file with mode: 0644]
dev/graph-container.lisp

index 9c21442..c1e13b4 100644 (file)
@@ -74,3 +74,8 @@ instructions."))
                         ((:module "graphviz"
                                   :components
                                   ((:file "graphviz-support-optional")))))))
+
+(asdf:defsystem-connection cl-graph-and-metacopy
+  :requires (cl-graph metacopy)
+  :components ((:module "dev"
+                        :components ((:file "copying")))))
diff --git a/dev/copying.lisp b/dev/copying.lisp
new file mode 100644 (file)
index 0000000..edb5dbe
--- /dev/null
@@ -0,0 +1,21 @@
+(in-package cl-graph)
+
+(metacopy:defcopy-methods basic-vertex 
+  :copy-all t)
+
+(metacopy:defcopy-methods basic-edge 
+  :set (edge-id tag color graph)
+  :copy (element))
+
+(metacopy:defcopy-methods weighted-edge-mixin 
+  :copy-all t)
+
+(metacopy:defcopy-methods basic-graph 
+  :copy-all t)
+
+(metacopy:defcopy-methods graph-container-vertex 
+  :copy-all t)
+
+(metacopy:defcopy-methods graph-container-edge 
+  :copy-all t)
+
index 5cfeed9..afafdda 100644 (file)
@@ -3,10 +3,6 @@
 
 $Id: graph-container.lisp,v 1.12 2005/07/20 20:39:09 moody Exp $
 
-Copyright 1992 - 2003 Experimental Knowledge Systems Lab, 
-University of Massachusetts Amherst MA, 01003-4610
-Professor Paul Cohen, Director
-
 Author: Gary King
 
 DISCUSSION
@@ -66,11 +62,6 @@ DISCUSSION
 
 ;;; ---------------------------------------------------------------------------
 
-#+COPYING 
-(defcopy-methods graph-container-vertex :copy-all t)
-
-;;; ---------------------------------------------------------------------------
-
 (defmethod make-vertex-edges-container ((vertex graph-container-vertex) 
                                         container-class &rest args)
   (apply #'make-container container-class args))