00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef __GECODE_SUPPORT_HH__
00039 #define __GECODE_SUPPORT_HH__
00040
00041 #include <cassert>
00042
00043 #include <gecode/support/config.hpp>
00044
00045
00046
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 #ifndef GECODE_BUILD_SUPPORT
00083 #define GECODE_LIBRARY_NAME "Support"
00084 #include <gecode/support/auto-link.hpp>
00085 #endif
00086
00087
00088 #ifdef GECODE_THREADS_WINDOWS
00089 #define GECODE_HAS_THREADS
00090 #endif
00091
00092 #ifdef GECODE_THREADS_PTHREADS
00093 #define GECODE_HAS_THREADS
00094 #endif
00095
00096
00097
00098
00099
00100
00101
00102 #include <gecode/support/macros.hpp>
00103 #include <gecode/support/exception.hpp>
00104 #include <gecode/support/cast.hpp>
00105 #include <gecode/support/heap.hpp>
00106 #include <gecode/support/marked-pointer.hpp>
00107 #include <gecode/support/int-type.hpp>
00108
00109
00110
00111
00112
00113
00114
00115 #include <gecode/support/bitset.hpp>
00116 #include <gecode/support/block-allocator.hpp>
00117 #include <gecode/support/dynamic-array.hpp>
00118 #include <gecode/support/dynamic-queue.hpp>
00119 #include <gecode/support/dynamic-stack.hpp>
00120 #include <gecode/support/random.hpp>
00121 #include <gecode/support/sort.hpp>
00122 #include <gecode/support/static-stack.hpp>
00123
00124
00125
00126
00127
00128
00129
00130 #include <gecode/support/thread.hpp>
00131 #include <gecode/support/timer.hpp>
00132
00133 #endif
00134
00135