30 #ifndef IMPPARALLEL_CONFIG_H
31 #define IMPPARALLEL_CONFIG_H
33 #include <IMP/base/base_config.h>
39 #ifdef IMPPARALLEL_EXPORTS
40 #define IMPPARALLELEXPORT __declspec(dllexport)
42 #define IMPPARALLELEXPORT __declspec(dllimport)
48 #define IMPPARALLELEXPORT __attribute__ ((visibility("default")))
49 #else // GCC_VISIBILITY
50 #define IMPPARALLELEXPORT
51 #endif // GCC_VISIBILITY
54 #if defined(_MSC_VER) && !defined(SWIG)
55 #ifdef IMPPARALLEL_EXPORTS
57 #define IMPPARALLEL_EXPORT_TEMPLATE(name) template class __declspec(dllexport) name
61 #define IMPPARALLEL_EXPORT_TEMPLATE(name) template class __declspec(dllimport) name
66 #define IMPPARALLEL_EXPORT_TEMPLATE(name) IMP_REQUIRE_SEMICOLON_NAMESPACE
68 #endif // MSC and SWIG
70 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
72 #define IMPPARALLEL_BEGIN_NAMESPACE \
73 IMP_COMPILER_ENABLE_WARNINGS \
74 namespace IMP { namespace parallel { \
76 #define IMPPARALLEL_END_NAMESPACE \
78 IMP_COMPILER_DISABLE_WARNINGS
80 #define IMPPARALLEL_BEGIN_INTERNAL_NAMESPACE \
81 IMPPARALLEL_BEGIN_NAMESPACE namespace internal {
84 #define IMPPARALLEL_END_INTERNAL_NAMESPACE \
85 } IMPPARALLEL_END_NAMESPACE
88 #define IMPPARALLEL_BEGIN_NAMESPACE \
89 namespace IMP { namespace parallel {
91 #define IMPPARALLEL_END_NAMESPACE \
94 #define IMPPARALLEL_BEGIN_INTERNAL_NAMESPACE \
95 IMPPARALLEL_BEGIN_NAMESPACE namespace internal {
98 #define IMPPARALLEL_END_INTERNAL_NAMESPACE \
99 } IMPPARALLEL_END_NAMESPACE
103 #define IMP_PARALLEL_USE_IMP_ALGEBRA
104 #define IMP_PARALLEL_HAS_IMP_ALGEBRA 1
105 #define IMP_PARALLEL_USE_IMP_BASE
106 #define IMP_PARALLEL_HAS_IMP_BASE 1
107 #define IMP_PARALLEL_USE_IMP_CGAL
108 #define IMP_PARALLEL_HAS_IMP_CGAL 1
109 #define IMP_PARALLEL_USE_BOOST_FILESYSTEM
110 #define IMP_PARALLEL_HAS_BOOST_FILESYSTEM 1
111 #define IMP_PARALLEL_USE_BOOST_PROGRAMOPTIONS
112 #define IMP_PARALLEL_HAS_BOOST_PROGRAMOPTIONS 1
113 #define IMP_PARALLEL_USE_BOOST_RANDOM
114 #define IMP_PARALLEL_HAS_BOOST_RANDOM 1
115 #define IMP_PARALLEL_USE_BOOST_SYSTEM
116 #define IMP_PARALLEL_HAS_BOOST_SYSTEM 1
117 #define IMP_PARALLEL_USE_CGAL
118 #define IMP_PARALLEL_HAS_CGAL 1
122 namespace IMP {
namespace parallel {
129 IMPPARALLELEXPORT std::string get_module_version();
134 inline std::string get_module_name() {
135 return "IMP::parallel";
141 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
146 namespace IMP {
namespace parallel {
147 using ::IMP::base::Showable;
148 using ::IMP::base::operator<<;
149 using ::IMP::base::hash_value;
151 namespace IMP {
namespace parallel {
namespace internal {
152 using ::IMP::base::Showable;
153 using ::IMP::base::operator<<;
154 using ::IMP::base::hash_value;
157 #endif // !defined(SWIG) && !defined(IMP_DOXYGEN)
162 namespace IMP {
namespace parallel {
175 IMPPARALLELEXPORT std::string
get_data_path(std::string file_name);