00001 /* 00002 * Copyright (c) 2001, University of Amsterdam, The Netherlands. 00003 * All rights reserved. 00004 * 00005 * Author(s): 00006 * Jan-Mark Geusebroek (mark@science.uva.nl) 00007 */ 00008 00009 #ifndef HxUpoArg_h 00010 #define HxUpoArg_h 00011 00012 #include "HxTagList.h" 00013 #include "HxClassName.h" 00014 #include "HxCategories.h" 00015 00016 00019 template<class DstValT, class SrcValT> 00020 class HxUpoArg 00021 { 00022 public: 00024 typedef HxTagTransInVar TransVarianceCategory; 00025 00027 HxUpoArg(HxTagList&) 00028 {} 00029 00031 DstValT doIt(const SrcValT& x) 00032 { return x.arg(); } 00033 00035 static HxString className() 00036 { return HxString("arg"); } 00037 }; 00038 00039 #endif