oversim_mapset.h

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2008 Institut fuer Telematik, Universitaet Karlsruhe (TH)
00003 //
00004 // This program is free software; you can redistribute it and/or
00005 // modify it under the terms of the GNU General Public License
00006 // as published by the Free Software Foundation; either version 2
00007 // of the License, or (at your option) any later version.
00008 //
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 
00023 #ifndef OVERSIM_MAPSET_H_
00024 #define OVERSIM_MAPSET_H_
00025 
00026 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
00027 #define HAVE_GCC_TR1 1
00028 #endif
00029 
00030 #if defined(HAVE_GCC_TR1)
00031 
00032 #include <tr1/unordered_map>
00033 #include <tr1/unordered_set>
00034 
00035 #define UNORDERED_MAP std::tr1::unordered_map
00036 #define UNORDERED_SET std::tr1::unordered_set
00037 #define HASH_NAMESPACE std::tr1
00038 
00039 #elif defined(HAVE_MSVC_TR1)
00040 
00041 #include <tr1/unordered_map>
00042 #include <tr1/unordered_set>
00043 
00044 #define UNORDERED_MAP std::tr1::unordered_map
00045 #define UNORDERED_SET std::tr1::unordered_set
00046 #define HASH_NAMESPACE std::tr1
00047 
00048 #elif _MSC_VER
00049 
00050 #include <hash_set>
00051 #include <hash_map>
00052 
00053 #define UNORDERED_MAP stdext::hash_map
00054 #define UNORDERED_SET stdext::hash_set
00055 #define HASH_NAMESPACE stdext
00056 
00057 #else
00058 
00059 #include <ext/hash_map>
00060 #include <ext/hash_set>
00061 
00062 #define UNORDERED_MAP __gnu_cxx::hash_map
00063 #define UNORDERED_SET __gnu_cxx::hash_set
00064 #define HASH_NAMESPACE __gnu_cxx
00065 
00066 //#else // boost
00067 //#include "boost/unordered_map.hpp"
00068 //
00069 //namespace std { namespace tr1 {
00070 //
00071 //  using boost::unordered_map;
00072 //  using boost::unordered_set;
00073 //  using boost::hash;
00074 //
00075 //}}
00076 
00077 #endif
00078 #endif
Generated on Wed May 26 16:21:14 2010 for OverSim by  doxygen 1.6.3