head	1.2;
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;
locks; strict;
comment	@// @;


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

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


desc
@The value of an uninitialized DDTemplate.
@


1.2
log
@Name sanitization
@
text
@// Emacs: -*- C++ -*-

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


//
// $Log: ErrorDT.h,v $
// Revision 1.1  1994/03/22  16:08:28  thoth
// Initial revision
//

#ifndef ErrorDT_h_
#define ErrorDT_h_

#include "BaseDT.h"
#include "image_errors.h"

template <class I>
class IA_ErrorDT: public IA_BaseDT<I> {
  private:
    static char dummy;

  public:
    IA_ErrorDT()
    :IA_BaseDT<I>(IA_Set<IA_Point<int> >()) {}

    int extensive() const { return 0; }

    I operator()(const IA_Point<int> &) const {
	ia_throw( Template_Uninitialized_Exception(__FILE__, __LINE__) );
	return I();
    }
    ostream &print_this(ostream &o) const {
	ia_throw( Template_Uninitialized_Exception(__FILE__, __LINE__) );
	return o;
    }

    static IA::Type s_type() { return &dummy; }
    IA::Type type() const { return &dummy; }
    int is_a(IA::Type t) { return t == s_type() ; }

    IA_BaseDT<I> *restricted_to(const IA_Set<IA_Point<int> > &) const {
	ia_throw( Template_Uninitialized_Exception(__FILE__, __LINE__) );
	return 0;
    }
};

template <class I>
char IA_ErrorDT<I>::dummy;

#endif
@


1.1
log
@Initial revision
@
text
@d11 3
d28 1
a28 1
    :IA_BaseDT<I>(IA_IntPointSet()) {}
d32 1
a32 1
    I operator()(const IA_IntPoint &) const {
d45 1
a45 1
    IA_BaseDT<I> *restricted_to(const IA_IntPointSet &) const {
@
