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


1.3
date	95.02.01.18.23.16;	author fjsoria;	state Exp;
branches;
next	1.2;

1.2
date	94.07.25.17.26.39;	author thoth;	state Exp;
branches;
next	1.1;

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


desc
@meta-code for a conversion from a lower type into a higher type.
@


1.3
log
@fix for casting problem in g++
@
text
@// Emacs: -*- C++ -*-

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


//
// $Log: conversion.templ,v $
// Revision 1.2  1994/07/25  17:26:39  thoth
// Name sanitization
//
// Revision 1.1  1994/01/31  16:50:30  thoth
// Initial revision
//

IA_Image<IA_Point<int>, LTYPE>::
operator IA_Image<IA_Point<int>, ATYPE>( )
{
    IA_Set<IA_Point<int> >	domain = this->domain();
    // if the domain isn\'t extensive, we need a lazy conversion image...
    const unsigned	sz = domain.card();
    ATYPE * const	vec = new ATYPE[sz];
    {
	ATYPE	*scan = vec;
	IA_IVIter<IA_Point<int>,LTYPE>	iter(*this);
	LTYPE	temp;
	while (iter(temp)) {
	    *(scan++) = SUBOP(temp);
	}
    }

    return IA_Image<IA_Point<int>,ATYPE>(domain, vec, sz, 1);
}
@


1.2
log
@Name sanitization
@
text
@d11 3
d30 1
a30 1
	    *(scan++) = temp;
@


1.1
log
@Initial revision
@
text
@d11 3
d15 2
a16 2
IA_Image<IA_IntPoint, LTYPE>::
operator IA_Image<IA_IntPoint, ATYPE>( )
d18 1
a18 1
    IA_IntPointSet	domain = this->domain();
d24 1
a24 1
	IA_IVIter<IA_IntPoint,LTYPE>	iter(*this);
d31 1
a31 1
    return IA_Image<IA_IntPoint,ATYPE>(domain, vec, sz, 1);
@
