Generated on Mon Aug 25 11:35:33 2008 for Gecode by doxygen 1.5.6

support.hh

Go to the documentation of this file.
00001 /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
00002 /*
00003  *  Main authors:
00004  *     Christian Schulte <schulte@gecode.org>
00005  *
00006  *  Copyright:
00007  *     Christian Schulte, 2007
00008  *
00009  *  Last modified:
00010  *     $Date: 2008-02-05 18:31:20 +0100 (Tue, 05 Feb 2008) $ by $Author: schulte $
00011  *     $Revision: 6066 $
00012  *
00013  *  This file is part of Gecode, the generic constraint
00014  *  development environment:
00015  *     http://www.gecode.org
00016  *
00017  *  Permission is hereby granted, free of charge, to any person obtaining
00018  *  a copy of this software and associated documentation files (the
00019  *  "Software"), to deal in the Software without restriction, including
00020  *  without limitation the rights to use, copy, modify, merge, publish,
00021  *  distribute, sublicense, and/or sell copies of the Software, and to
00022  *  permit persons to whom the Software is furnished to do so, subject to
00023  *  the following conditions:
00024  *
00025  *  The above copyright notice and this permission notice shall be
00026  *  included in all copies or substantial portions of the Software.
00027  *
00028  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00029  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00030  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00031  *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
00032  *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
00033  *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00034  *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00035  *
00036  */
00037 
00038 #ifndef __GECODE_SUPPORT_HH__
00039 #define __GECODE_SUPPORT_HH__
00040 
00041 #include <cassert>
00042 
00043 #include "gecode/support/config.icc"
00044 
00045 /*
00046  * Linking and compiler workarounds
00047  *
00048  */
00049 #if !defined(GECODE_STATIC_LIBS) && \
00050     (defined(__CYGWIN__) || defined(__MINGW32__) || defined(_MSC_VER))
00051 
00058 #define GECODE_MSC_VIRTUAL virtual
00059 
00060 #ifdef GECODE_BUILD_SUPPORT
00061 #define GECODE_SUPPORT_EXPORT __declspec( dllexport )
00062 #else
00063 #define GECODE_SUPPORT_EXPORT __declspec( dllimport )
00064 #endif
00065 #define GECODE_VTABLE_EXPORT
00066 
00067 #else
00068 
00069 #define GECODE_MSC_VIRTUAL
00070 
00071 #ifdef GECODE_GCC_HAS_CLASS_VISIBILITY
00072 #define GECODE_SUPPORT_EXPORT __attribute__ ((visibility("default")))
00073 #define GECODE_VTABLE_EXPORT __attribute__ ((visibility("default")))
00074 #else
00075 #define GECODE_SUPPORT_EXPORT
00076 #define GECODE_VTABLE_EXPORT
00077 #endif
00078 
00079 #endif
00080 
00081 /*
00082  * Basic support needed everywhere
00083  *
00084  */
00085 
00086 #include "gecode/support/macros.icc"
00087 #include "gecode/support/exception.icc"
00088 #include "gecode/support/cast.icc"
00089 #include "gecode/support/memory.icc"
00090 #include "gecode/support/marked-pointer.icc"
00091 
00092 /*
00093  * Common datastructures and algorithms
00094  *
00095  */
00096 
00097 #include "gecode/support/block-allocator.icc"
00098 #include "gecode/support/dynamic-array.icc"
00099 #include "gecode/support/dynamic-stack.icc"
00100 #include "gecode/support/random.icc"
00101 #include "gecode/support/sentinel-stack.icc"
00102 #include "gecode/support/sort.icc"
00103 #include "gecode/support/static-pqueue.icc"
00104 #include "gecode/support/static-stack.icc"
00105 #include "gecode/support/symbol.icc"
00106 #include "gecode/support/map.icc"
00107 
00108 #endif
00109 
00110 // STATISTICS: support-any