Main Page   Class Overview   Pixels   Images   Geometry   Quick Index  

HxBpoAdd.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *  Author(s):
00006  *  Dennis Koelma (koelma@wins.uva.nl)
00007  *  Edo Poll (poll@wins.uva.nl)
00008  */
00009 
00010 #ifndef HxBpoAdd_h
00011 #define HxBpoAdd_h
00012 
00013 #include "HxString.h"
00014 
00015 class HxTagList;
00016 
00017 
00020 template<class DstValT, class Src1ValT, class Src2ValT>
00021 class HxBpoAdd
00022 {
00023 public:
00025                     HxBpoAdd(HxTagList&)
00026                         {}
00027 
00029     DstValT         doIt(const Src1ValT& x, const Src2ValT& y)
00030                         { return x + y; }
00031 
00032     static DstValT  neutralElement()
00033                         { return DstValT(0); }
00034 
00036     static HxString className()
00037                         { return HxString("add"); }
00038 };
00039 
00040 #endif

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