00001 #ifndef NMWR_GB_DUMMY_MAPPING_H 00002 #define NMWR_GB_DUMMY_MAPPING_H 00003 00004 00005 // $LICENSE 00006 00013 template<class T1, class T2> 00014 class dummy_mapping { 00015 private: 00016 T2 dummy; 00017 public: 00018 dummy_mapping() {} 00019 00020 const T2& operator()(const T1&) const { return dummy;} 00021 T2& operator[](const T1&) { return dummy;} 00022 00023 typedef T1 argument_type; 00024 typedef T2 result_type; 00025 }; 00026 00027 #endif 00028