head	1.4;
access;
symbols
	r0_10:1.4
	Eglin_alpha_1:1.4;
locks; strict;
comment	@// @;


1.4
date	93.05.27.11.27.54;	author thoth;	state Exp;
branches;
next	1.3;

1.3
date	93.04.17.18.44.59;	author thoth;	state Exp;
branches;
next	1.2;

1.2
date	93.01.19.14.55.35;	author jnw;	state Exp;
branches;
next	1.1;

1.1
date	92.10.05.11.45.27;	author jnw;	state Exp;
branches;
next	;


desc
@Initial revision
@


1.4
log
@Copyright Notices
@
text
@// Emacs: -*- C++ -*-

//
//	Copyright 1993, Center for Computer Vision and Visualization,
//	University of Florida.  All rights reserved.
//

static char BaseDIIterrcsid[] = "$Id: BaseDIIter.c,v 1.3 93/04/17 18:44:59 thoth Exp Locker: thoth $";

// $Log:	BaseDIIter.c,v $
// Revision 1.3  93/04/17  18:44:59  thoth
// Iterator support is no longer based on a switch statement.  We now
// use a virtual method.  The user can now provide faster iterators.
// 
// Revision 1.2  93/01/19  14:55:35  jnw
// Modified to support IA_ naming convention
// 
// Revision 1.1  92/10/05  11:45:27  jnw
// Initial revision
// 

#include "BaseDIIter.h"
#include "BaseDI.h"

template <class T>
IA_BaseDIVIter<T>::IA_BaseDIVIter(const IA_BaseDI<T> *x)
{
    // cast away const
    domain = (IA_BaseDI<T>*)x;
    domain->incr_ref();
}

template <class T>
IA_BaseDIVIter<T>::~IA_BaseDIVIter()
{
    if (domain->decr_ref()<=0)
	    delete domain;
}

//
//
//

template <class T>
IA_BaseDIPIter<T>::IA_BaseDIPIter(const IA_BaseDI<T> *x)
{
    // cast away const
    domain = (IA_BaseDI<T>*)x;
    domain->incr_ref();
}

template <class T>
IA_BaseDIPIter<T>::~IA_BaseDIPIter()
{
    if (domain->decr_ref()<=0)
	delete domain;
}
@


1.3
log
@Iterator support is no longer based on a switch statement.  We now
use a virtual method.  The user can now provide faster iterators.
@
text
@a1 1
static char BaseDIIterrcsid[] = "$Id: BaseDIIter.c,v 1.2 93/01/19 14:55:35 jnw Exp Locker: thoth $";
d3 7
d11 4
@


1.2
log
@Modified to support IA_ naming convention
@
text
@d2 1
a2 1
static char BaseDIIterrcsid[] = "$Id: BaseDIIter.c,v 1.1 92/10/05 11:45:27 jnw Exp Locker: jnw $";
d5 3
d13 1
d16 1
a16 1
IA_DiscreteImage<T> IA_BaseDIIter<T>::domain_() const
d18 29
a46 1
    return this->domain;
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
static char BaseDIIterrcsid[] = "$Id$";
d4 4
a7 1
// $Log$
d12 1
a12 1
DiscreteImage<T> BaseDIIter<T>::domain_() const
@
