Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef VIENNADATA_TRAITS_KEY_DISPATCH_HPP
00014 #define VIENNADATA_TRAITS_KEY_DISPATCH_HPP
00015
00016 #include "viennadata/forwards.h"
00017
00022 namespace viennadata
00023 {
00024 namespace config
00025 {
00026
00042 template <typename KeyType>
00043 struct key_dispatch
00044 {
00045 typedef full_key_dispatch_tag tag;
00046 };
00047
00048 }
00049 }
00050
00051
00052
00054 #define VIENNADATA_ENABLE_TYPE_BASED_KEY_DISPATCH(arg_CLASS) \
00055 namespace viennadata { namespace config { \
00056 template <> struct key_dispatch<arg_CLASS> { typedef type_key_dispatch_tag tag; }; \
00057 } }
00058
00059
00060 #endif
00061