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


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

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


desc
@Discrete Template defined by a function
@


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

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


static char FunctionDT_rcsid[] = "$Id: FunctionDT.c,v 1.1 93/04/17 19:00:27 thoth Exp Locker: thoth $";

//
// $Log:	FunctionDT.c,v $
// Revision 1.1  93/04/17  19:00:27  thoth
// Initial revision
// 

#include "FunctionDT.h"
#include "IPSIter.h"

template <class I>
char IA_FunctionDT<I>::dummy = 0;

template <class I>
I IA_FunctionDT<I>::operator ()(const IA_IntPoint& p) const {
    //if (!this->ps.contains(p))
    //ia_throw( IA::IMAGE_DOMAIN_ERROR, __FILE__, __LINE__);
    return (*(this->func))(p);
}

template <class I>
ostream& IA_FunctionDT<I>::print_this(ostream& o) const
{
    o << "FunctionDT -";
    if (this->ps.extensivep()){
	IA_IPSIter iter(this->ps);
	IA_IntPoint p;
	
	o << "(point,value) pairs follow:\n";
	while(iter(p)) {
	    o << "(" << p << "," << (*this->func)(p) << ") ";
	}
    } else {
	o << ", Function : " << (int)(this->func) <<
	    ", PointSet : Comprehensive";
    }
    return o << "\n";
}
@


1.1
log
@Initial revision
@
text
@d3 4
a6 1
static char FunctionDT_rcsid[] = "$Id: FunctionRefDI.c,v 1.4 93/02/23 14:18:58 thoth Exp $";
d8 3
d12 4
a15 1
// $Log:	FunctionRefDI.c,v $
@
