BWAPI
SPAR/AIModule/BWTA/vendors/CGAL/CGAL/CORE/Impl.h
Go to the documentation of this file.
00001 #ifndef _CORE_IMPL_H_
00002 #define _CORE_IMPL_H_
00003 
00004 #include <CGAL/CORE/Config.h>
00005 
00006 // The following lines only for MS Visual C++
00007 #ifdef _MSC_VER
00008   #pragma warning(disable: 4291) // no matching operator delete found
00009   #pragma warning(disable: 4146) 
00010   #pragma warning(disable: 4267)
00011   #pragma warning(disable: 4244) 
00012 #endif
00013 
00014 // macros for defining namespace
00015 #define CORE_BEGIN_NAMESPACE    namespace CORE {
00016 #define CORE_END_NAMESPACE      };
00017 
00018 // condition preprocessor for inline function
00019 #ifndef CORE_DISABLE_INLINE
00020   #define CORE_INLINE inline
00021 #else
00022   #define CORE_INLINE
00023 #endif
00024 
00025 // Macros for memory pool
00026 #ifdef CORE_DISABLE_MEMORY_POOL
00027   #define CORE_MEMORY(T)
00028 #else
00029   #include <CGAL/CORE/MemoryPool.h>
00030   #define CORE_MEMORY(T)                                                 \
00031     void *operator new( size_t size)                                     \
00032     { return MemoryPool<T>::global_allocator().allocate(size); }         \
00033     void operator delete( void *p, size_t )                              \
00034     { MemoryPool<T>::global_allocator().free(p); }
00035 #endif
00036 
00037 // include some common header files
00038 #include <cstdio>
00039 #include <cstdlib>
00040 #include <cstring>
00041 #include <cmath>
00042 #include <cfloat>
00043 #include <cassert>
00044 #include <cctype>
00045 #include <climits>
00046 #include <iostream>
00047 #include <iomanip>
00048 #include <sstream>
00049 #include <string>
00050 
00051 #endif // _CORE_IMPL_H_
00052 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines