Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxBpoMaxAssign.h

00001 /*
00002  *  Copyright (c) 1999, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Edo Poll                (poll@wins.uva.nl)
00007  *  Marc Navarro            (mnavarro@wins.uva.nl)
00008  *  Dennis Koelma           (koelma@wins.uva.nl)
00009  */
00010 
00011 #ifndef HxBpoMaxAssign_h
00012 #define HxBpoMaxAssign_h
00013 
00014 #include "HxTagList.h"
00015 #include "HxClassName.h"
00016 
00017 
00020 template<class DstValT, class SrcValT>
00021 struct HxBpoMaxAssign
00022 {
00023     typedef DstValT ArithType;
00024 
00026                     HxBpoMaxAssign(HxTagList&)
00027                         {}
00028 
00030     void            doIt(DstValT& x, const SrcValT& y)
00031                         { x.maxAssign(y); }
00032 
00033     static DstValT  neutralElement()
00034                         { return DstValT::SMALL_VAL; }
00035 
00037     static HxString className()
00038                         { return HxString("maxAssign"); }
00039 };
00040 
00041 #endif

Generated on Tue Jan 8 13:59:11 2002 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001