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


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


desc
@Point,value pair declaration and inline implementation.
@


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

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


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

#ifndef Pixel_h_
#define Pixel_h_

#include "Point.h"

template <class P, class T>
class IA_Pixel {
public:				// why not?
    P	point;
    T	value;
public:
    IA_Pixel() { }
    IA_Pixel(const P &p, T v) : point(p), value(v) { }
#if 1 // Maybe this will fix CFront
    IA_Pixel& operator=(const IA_Pixel &p) {
	point = p.point;
	value = p.value;
	return *this;
    }
#endif
    static int compare(const IA_Pixel &lhs, const IA_Pixel &rhs) {
	return pointcmp(lhs.point, rhs.point);
    }
    static int vcompare(const void *a, const void *b) {
	return compare (*(const IA_Pixel<P,T>*)a, *(const IA_Pixel<P,T>*)b);
    }
};

#endif
@
