head	1.2;
access;
symbols
	r2_1:1.2
	r2_0:1.2
	r1_1_beta:1.2
	r0_11:1.2;
locks; strict;
comment	@//@;


1.2
date	93.05.26.17.15.42;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	92.12.16.02.09.29;	author rjj;	state Exp;
branches;
next	;


desc
@Initial version.  Used by IA_Deque.
@


1.2
log
@Added Copyright message
@
text
@// -*- C++ -*-
//      Copyright 1993, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.

#include "Cell.h"

static char IA_Cell_c_rcsid[] = "$Id: Cell.c,v 1.1 92/12/16 02:09:29 rjj Exp Locker: rjj $";

// $Log:	Cell.c,v $
//Revision 1.1  92/12/16  02:09:29  rjj
//Initial revision
//


/////////////////////////////////////////////////////////////////////////////
//
// class IA_Cell
//
/////////////////////////////////////////////////////////////////////////////

/*template <class T>
const  char*  IA_Cell<T>::c_file() {
    return IA_Cell_c_rcsid;
}
*/

template <class T>
void IA_Cell<T>::nullCell() {
//    this->cellValue = T(0);
    this->nextCell = this;
    this->prevCell = this;
}


template <class T>
IA_Cell<T>* IA_Cell<T>::skip(int s) {

    IA_Cell<T>* skipCell = this;

    if (s < 0) {
	for (int i=0; s<i; i--) {
	    skipCell = (skipCell) ? skipCell->prev() : 0;
	}
    } else {
	for (int i=0; i<s; i++) {
	    skipCell = (skipCell) ? skipCell->next() : 0;
	}
    }
    return skipCell;
}
@


1.1
log
@Initial revision
@
text
@d2 2
d7 1
a7 1
static char IA_Cell_c_rcsid[] = "$Id$";
d9 4
a12 1
// $Log$
@
