NGSolve
4.9
|
00001 #ifndef FILE_NGSTD 00002 #define FILE_NGSTD 00003 00004 /*********************************************************************/ 00005 /* File: ngstd.hpp */ 00006 /* Author: Joachim Schoeberl */ 00007 /* Date: 25. Mar. 2000 */ 00008 /*********************************************************************/ 00009 00010 /* 00011 ng-standard classes 00012 */ 00013 00014 #include <ngs_stdcpp_include.hpp> 00015 00016 #ifdef WIN32 00017 #ifdef NGINTERFACE_EXPORTS 00018 #define DLL_HEADER __declspec(dllexport) 00019 #else 00020 #define DLL_HEADER __declspec(dllimport) 00021 #endif 00022 00023 #ifdef NGS_EXPORTS 00024 #define NGS_DLL_HEADER __declspec(dllexport) 00025 #else 00026 #define NGS_DLL_HEADER __declspec(dllimport) 00027 #endif 00028 00029 00030 #else 00031 #define DLL_HEADER 00032 #define NGS_DLL_HEADER 00033 #endif 00034 00035 00036 /* 00037 inline void * operator new (size_t cnt) 00038 { 00039 static int cnt_new = 0; 00040 cnt_new++; 00041 std::cout << "private new called, cnt = " << cnt_new << std::endl; 00042 return operator new(cnt, std::nothrow); 00043 } 00044 00045 inline void * operator new[] (size_t cnt) 00046 { 00047 static int cnt_new = 0; 00048 cnt_new++; 00049 std::cout << "private new[] called, cnt = " << cnt_new << std::endl; 00050 return operator new[](cnt, std::nothrow); 00051 } 00052 */ 00053 00054 00055 00056 00057 00058 // #include "dynamicmem.hpp" 00059 00060 00061 namespace ngstd 00062 { 00063 NGS_DLL_HEADER extern ::std::ostream * testout; 00064 } 00065 00066 00067 namespace netgen 00068 { 00069 DLL_HEADER extern int printmessage_importance; 00070 } 00071 00072 00073 /* 00074 namespace ngstd 00075 { 00076 using netgen::DynamicMem; 00077 } 00078 */ 00079 00080 00088 namespace ngstd 00089 { 00090 using namespace std; 00091 } 00092 00093 #include <ngs_defines.hpp> 00094 00095 00096 #include "ngsstream.hpp" 00097 #include "templates.hpp" 00098 #include "exception.hpp" 00099 #include "localheap.hpp" 00100 00101 #include "array.hpp" 00102 #include "table.hpp" 00103 #include "symboltable.hpp" 00104 #include "hashtable.hpp" 00105 #include "bitarray.hpp" 00106 00107 #include "blockalloc.hpp" 00108 #include "autoptr.hpp" 00109 #include "memusage.hpp" 00110 #include "flags.hpp" 00111 #include "evalfunc.hpp" 00112 #include "autodiff.hpp" 00113 #include "autodiffdiff.hpp" 00114 #include "stringops.hpp" 00115 #include "profiler.hpp" 00116 #include "statushandler.hpp" 00117 00118 #include "mpiwrapper.hpp" 00119 00120 namespace ngstd 00121 { 00122 #ifdef WIN32 00123 const char dirslash = '\\'; 00124 #else 00125 const char dirslash = '/'; 00126 #endif 00127 } 00128 00129 00130 #endif