Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

util.h

Go to the documentation of this file.
00001 /* ===========================================================================
00002  *        Filename:  util.h
00003  *     Description:  Header with utility classes and definitions
00004  * 
00005  *         Version:  $Rev: 11 $
00006  *         Changed:  $Date: 2005-08-04 17:58:36 -0400 (Do, 04 Aug 2005) $
00007  *         Licence:  GPL (read COPYING file for details)
00008  * 
00009  *          Author:  Erich Schubert (eS), erich@debian.org
00010  *                   Institut für Informatik, LMU München
00011  * ======================================================================== */
00012 #ifndef  UTIL_INC
00013 #define  UTIL_INC
00014 #include <ext/hash_map>
00015 
00016 /**** Utilities ****/
00017 /* FIXME: move this into std namespace to get rid of GNU dependency? */
00018 namespace __gnu_cxx {
00020 template<>
00021 struct hash<void *> {
00023     size_t operator()(const void * __x) const {
00024         return reinterpret_cast<size_t>(__x); }
00025     };
00026 }
00027 
00029 #define MIN(a,b) (( (a<=b) ? a : b ))
00030 
00031 #define MAX(a,b) (( (a>=b) ? a : b ))
00032 
00033 /* vim:set noet sw=4 ts=8: */
00034 #endif   /* ----- #ifndef UTIL_INC  ----- */

Generated on Thu Aug 4 17:57:12 2005 for SSDDiff by  doxygen 1.4.3-20050530