Move GMX_CXX11 to config.h
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 7 Jul 2014 15:28:22 +0000 (18:28 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 8 Jul 2014 14:16:38 +0000 (16:16 +0200)
Now that uniqueptr.h is not used by any installed header, do not install
it.  Move GMX_CXX11 that was used only by this file to config.h now that
config.h can be freely included in that file.

Part of #1454

Change-Id: Ie4c2f23057962f2dc1f96c309c10d5ce0c2c2a74

src/config.h.cmakein
src/gromacs/utility.h
src/gromacs/utility/CMakeLists.txt
src/gromacs/utility/gmx_header_config_gen.h.cmakein
src/gromacs/utility/uniqueptr.h

index c0fe73d85ed430207effd2dd2103855fd67a4e45..b1397b5c595d713f640dc6fdd6b2e56df19aefc5 100644 (file)
@@ -93,6 +93,9 @@
 /* Target platform is BlueGene/Q */
 #cmakedefine GMX_TARGET_BGQ
 
+/** Define if we have sufficient C++11 support */
+#cmakedefine GMX_CXX11
+
 /* GCC bug in AVX maskload/maskstore arguments - worked around internally */
 #cmakedefine GMX_SIMD_X86_AVX_GCC_MASKLOAD_BUG
 
index 1bf7655a575f8ce63fffd438a46812c2a500b07f..9abfa1cbb69b7ef5ad3219c0d1c6d7fb18eda994 100644 (file)
  * The header flags.h implements a gmx::FlagsTemplate template for better type
  * safety when using bit flag fields.
  *
- * The header uniqueptr.h declares gmx::gmx_unique_ptr, which is intended for
- * declaring smart pointer types with unique ownership.
- *
  *
  * <H3>Other Functionality</H3>
  *
  * The header qsort_threadsafe.h provides a guaranteed threadsafe
  * implementation for qsort().
  *
+ * The header uniqueptr.h declares gmx::gmx_unique_ptr, which is intended for
+ * declaring smart pointer types with unique ownership.
+ *
  * \endif
  *
  * \author Teemu Murtola <teemu.murtola@gmail.com>
index 00b133967235020cd3cf0965ddee78c2c3ffd905..84b48dbb6c7aac3d0a6a7a213f59f6b6c59e95a6 100644 (file)
@@ -57,7 +57,7 @@ set(UTILITY_PUBLIC_HEADERS
     real.h
     smalloc.h
     stringutil.h
-    uniqueptr.h)
+    )
 gmx_install_headers(utility ${UTILITY_PUBLIC_HEADERS})
 gmx_install_headers(utility ${GENERATED_HEADER_CONFIG})
 
index 3e99283735b5aa534529e62cfdc631f4871cfc1a..61b550a2cc0e1ace3b862f6eef04aadddfc1961f 100644 (file)
@@ -56,6 +56,3 @@
 #ifdef _MSC_VER
 #define GMX_NATIVE_WINDOWS
 #endif
-
-/** Define if we have sufficient C++11 support */
-#cmakedefine GMX_CXX11
index c9157f9755c05247aedc972280a90b45b0de2032..93d376cd8a1da0e38cb83c8172819759cc175ec9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2012,2013, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -32,7 +32,7 @@
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
-/*! \file
+/*! \libinternal \file
  * \brief
  * Declares gmx::gmx_unique_ptr and supporting functionality.
  *
@@ -44,7 +44,7 @@
 #ifndef GMX_UTILITY_UNIQUEPTR_H
 #define GMX_UTILITY_UNIQUEPTR_H
 
-#include "gmx_header_config.h"
+#include "config.h"
 
 #ifdef GMX_CXX11 // C++11 Compiler
 #include <memory>
@@ -56,7 +56,8 @@
 namespace gmx
 {
 
-/*! \class gmx_unique_ptr
+//! \cond libapi
+/*! \libinternal \class gmx_unique_ptr
  * \brief
  * Smart pointer for unique ownership.
  *
@@ -73,7 +74,7 @@ namespace gmx
  * \ingroup module_utility
  * \inlibraryapi
  */
-/*! \typedef gmx_unique_ptr::type
+/*! \libinternal \typedef gmx_unique_ptr::type
  * \brief The smart pointer type.
  * Work-around for the non-existence of template typedefs in C++03.
  */
@@ -105,6 +106,7 @@ struct gmx_unique_ptr
     typedef boost::shared_ptr<T> type;
 };
 #endif
+//! \endcond
 
 } // namespace gmx