head	1.1;
access;
symbols
	bobbase:1.1
	bob:1.1
	r2_1:1.1
	r2_0:1.1
	r1_1_beta:1.1
	r1_1_alpha:1.1
	r1_0:1.1
	r0_11:1.1
	r0_10:1.1
	r0_9:1.1;
locks; strict;
comment	@// @;


1.1
date	93.11.29.22.28.49;	author thoth;	state Exp;
branches;
next	;


desc
@Generic Image Iterator.
@


1.1
log
@Initial revision
@
text
@// Emacs: -*- C++ -*-

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


//
// $Log: BaseI.h,v $

#include "OtherImageIter.h"
#include "BaseI.h"

template < class P,class T>
IA_OtherIVIter<P,T>::IA_OtherIVIter(const IA_BaseImage<P,T>* img)
     :IA_BaseIVIter<P,T>(img), iter(img->domain()) { }


template < class P,class T>
IA_OtherIVIter<P,T>::IA_OtherIVIter(const IA_OtherIVIter<P,T>& iter)
     :IA_BaseIVIter<P,T>(iter.domain), iter(iter.iter) { }

template < class P,class T>
int IA_OtherIVIter<P,T>::next(T &v)
{
  P	ip;
  if (!iter(ip))
    return 0;
  v = (*domain)(ip);
  return 1;
}


template < class P,class T>
IA_OtherIPIter<P,T>::IA_OtherIPIter(const IA_BaseImage<P,T>* img)
     :IA_BaseIPIter<P,T>(img), iter(img->domain()) { }


template < class P,class T>
IA_OtherIPIter<P,T>::IA_OtherIPIter(const IA_OtherIPIter<P,T>& iter)
     :IA_BaseIPIter<P,T>(iter.domain), iter(iter.iter) { }

template < class P,class T>
int IA_OtherIPIter<P,T>::next(P &ip, T &v)
{
  if (!iter(ip))
    return 0;
  v = (*domain)(ip);
  return 1;
}
@
