head	1.1;
access;
symbols
	bobbase:1.1
	bob:1.1;
locks; strict;
comment	@// @;


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


desc
@Generic Set iterator implementation.
@


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

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

// 
// $Log: PSIter.c,v $

#include "SetIter.h"

#ifdef IA_PRII
#pragma implementation
#endif


template <class T>
IA_SetIter<T>::IA_SetIter()
{
    iter = IA_Set<T>().bsp->iterator();
}


template <class T>
IA_SetIter<T> & IA_SetIter<T>::operator=(const IA_Set<T> &x)
{
    delete this->iter;

    this->iter = x.bsp->iterator();

    return *this;
}

template <class T>
IA_SetIter<T> & IA_SetIter<T>::operator=(const IA_SetIter<T> &x)
{
    if (x.iter==this->iter)
	return *this;

    delete this->iter;

    this->iter = x.iter->clone_self();

    return *this;
}
@
