[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz Cell.java
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gzz Cell.java |
Date: |
Thu, 29 Aug 2002 08:46:38 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/08/29 08:46:38
Modified files:
gzz : Cell.java
Log message:
Forgot one part of PEG 1002: zzclone move. Here.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/Cell.java.diff?tr1=1.27&tr2=1.28&r1=text&r2=text
Patches:
Index: gzz/gzz/Cell.java
diff -c gzz/gzz/Cell.java:1.27 gzz/gzz/Cell.java:1.28
*** gzz/gzz/Cell.java:1.27 Thu Aug 29 06:08:34 2002
--- gzz/gzz/Cell.java Thu Aug 29 08:46:38 2002
***************
*** 67,73 ****
*/
public class Cell {
! public static final String rcsid = "$Id: Cell.java,v 1.27 2002/08/29 10:08:34
tjl Exp $";
public final Space space;
--- 67,73 ----
*/
public class Cell {
! public static final String rcsid = "$Id: Cell.java,v 1.28 2002/08/29 12:46:38
tjl Exp $";
public final Space space;
***************
*** 379,407 ****
}
final public Cell zzclone() {
! Dim cl = space.getCloneDim();
! return space.N(cl.h(this, 1), cl, 1, null);
}
/** Clone this cell in the same slice as a given cell.
* @diagram zzstruct
*/
final public Cell zzclone(Cell inSlice) {
! Dim cl = space.getCloneDim();
! Cell end = cl.h(this, 1);
! Cell nu = space.N(inSlice);
! Cell firstroot = nu.getRootclone();
! end.connect(cl, 1, nu);
! if(!nu.getRootclone().equals(getRootclone()))
! throw new ZZError("ARGH: zzclone(Cell) didn't work: "+
! getRootclone() + " != " + nu.getRootclone()+"\n"+
! "Nu was: "+nu+" in "+nu.space+"\n"+
! "This is: "+this+" in "+space+"\n"+
! "End was: "+end+" in "+end.space+"\n"+
! "Nu's negconn was: "+nu.s(cl, -1)+"\n"+
! "Nu's head was: "+nu.h(cl, -1)+"\n"+
! "Firstroot was: "+firstroot);
! return nu;
}
final public Cell getRootclone() { return getRootclone(null); }
--- 379,393 ----
}
final public Cell zzclone() {
! return space.zzclone(this, null);
!
}
/** Clone this cell in the same slice as a given cell.
* @diagram zzstruct
*/
final public Cell zzclone(Cell inSlice) {
! return space.zzclone(this, inSlice);
}
final public Cell getRootclone() { return getRootclone(null); }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gzz Cell.java,
Tuomas J. Lukka <=