• Main Page
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

/export/development/ViennaData/release/ViennaData-1.0.1/viennadata/config/default_data_for_key.hpp

Go to the documentation of this file.
00001 /* =======================================================================
00002    Copyright (c) 2010, Institute for Microelectronics, TU Vienna.
00003    http://www.iue.tuwien.ac.at
00004                              -----------------
00005                      ViennaData - The Vienna Data Storage Library
00006                              -----------------
00007 
00008    authors:    Karl Rupp                          rupp@iue.tuwien.ac.at
00009 
00010    license:    MIT (X11), see file LICENSE in the ViennaData base directory
00011 ======================================================================= */
00012 
00013 #ifndef VIENNADATA_CONFIG_DEFAULT_DATA_FOR_KEY_HPP
00014 #define VIENNADATA_CONFIG_DEFAULT_DATA_FOR_KEY_HPP
00015 
00016 #include "viennadata/forwards.h"
00017 
00023 namespace viennadata
00024 {
00025   namespace config
00026   {
00046     template <typename KeyType>
00047     struct default_data_for_key
00048     {
00049       //by default, the data type must not be omitted, thus force a compiler error in this case (no matching function found)
00050     };
00051 
00052   } //namespace config  
00053   
00054 } //namespace viennadata
00055 
00057 #define VIENNADATA_ENABLE_DEFAULT_DATA_TYPE_FOR_KEY(arg_KEYCLASS, arg_DATACLASS) \
00058 namespace viennadata { namespace config { \
00059   template <> struct default_data_for_key<arg_KEYCLASS> {  typedef arg_DATACLASS  type; }; \
00060 } }
00061 
00062 
00063 #endif
00064 

Generated on Wed Sep 14 2011 18:17:05 for ViennaData - The Vienna Data Storage Library by  doxygen 1.7.1