Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / restraint / manager.h
index 30b6bab3733d3d57c3a6c2cd413229f3f5a109e5..eda0e81863f766c348dfc52dd4fbc65ec1e6c15d 100644 (file)
@@ -76,67 +76,66 @@ namespace gmx
  */
 class RestraintManager final
 {
-    public:
-        //! Create new restraint manager resources with empty set of restraints.
-        RestraintManager();
-
-        ~RestraintManager();
-
-        /*!
-         * \brief Client code can access the shared resource by copying or moving a handle.
-         * \{
-         */
-        RestraintManager(const RestraintManager &/* unused */) = default;
-        RestraintManager               &operator=(const RestraintManager & /* unused */)     = default;
-        RestraintManager(RestraintManager &&) noexcept                                       = default;
-        RestraintManager               &operator=(RestraintManager && /* unused */) noexcept = default;
-        /*! \} */
-
-        /*!
-         * \brief Clear registered restraints and reset the manager.
-         */
-        void clear() noexcept;
-
-        /*!
-         * \brief Get the number of currently managed restraints.
-         *
-         * \return number of restraints.
-         *
-         * \internal
-         * Only considers the IRestraintPotential objects
-         */
-        unsigned long countRestraints() noexcept;
-
-        /*! \brief Obtain the ability to create a restraint MDModule
-         *
-         * Though the name is reminiscent of the evolving idea of a work specification, the
-         * Spec here is just a list of restraint modules.
-         *
-         * \param restraint shared ownership of a restraint potential interface.
-         * \param name key by which to reference the restraint.
-         */
-        void addToSpec(std::shared_ptr<gmx::IRestraintPotential> restraint,
-                       const std::string                        &name);
-
-        /*!
-         * \brief Get a copy of the current set of restraints to be applied.
-         *
-         * This function is to be used when launching a simulation to get the
-         * restraint handles to bind, so it is not performance sensitive. A new
-         * vector is returned with each call because it is unspecified whether
-         * the set of handles point to the same objects on all threads or between
-         * calls to getRestraints.
-         *
-         * \return a copy of the list of restraint potentials.
-         */
-        std::vector< std::shared_ptr<IRestraintPotential> > getRestraints() const;
-
-    private:
-        class Impl;
-        //! Ownership of the shared reference to the global manager.
-        std::shared_ptr<Impl> instance_;
+public:
+    //! Create new restraint manager resources with empty set of restraints.
+    RestraintManager();
+
+    ~RestraintManager();
+
+    /*!
+     * \brief Client code can access the shared resource by copying or moving a handle.
+     * \{
+     */
+    RestraintManager(const RestraintManager& /* unused */) = default;
+    RestraintManager& operator=(const RestraintManager& /* unused */) = default;
+    RestraintManager(RestraintManager&&) noexcept                     = default;
+    RestraintManager& operator=(RestraintManager&& /* unused */) noexcept = default;
+    /*! \} */
+
+    /*!
+     * \brief Clear registered restraints and reset the manager.
+     */
+    void clear() noexcept;
+
+    /*!
+     * \brief Get the number of currently managed restraints.
+     *
+     * \return number of restraints.
+     *
+     * \internal
+     * Only considers the IRestraintPotential objects
+     */
+    unsigned long countRestraints() noexcept;
+
+    /*! \brief Obtain the ability to create a restraint MDModule
+     *
+     * Though the name is reminiscent of the evolving idea of a work specification, the
+     * Spec here is just a list of restraint modules.
+     *
+     * \param restraint shared ownership of a restraint potential interface.
+     * \param name key by which to reference the restraint.
+     */
+    void addToSpec(std::shared_ptr<gmx::IRestraintPotential> restraint, const std::string& name);
+
+    /*!
+     * \brief Get a copy of the current set of restraints to be applied.
+     *
+     * This function is to be used when launching a simulation to get the
+     * restraint handles to bind, so it is not performance sensitive. A new
+     * vector is returned with each call because it is unspecified whether
+     * the set of handles point to the same objects on all threads or between
+     * calls to getRestraints.
+     *
+     * \return a copy of the list of restraint potentials.
+     */
+    std::vector<std::shared_ptr<IRestraintPotential>> getRestraints() const;
+
+private:
+    class Impl;
+    //! Ownership of the shared reference to the global manager.
+    std::shared_ptr<Impl> instance_;
 };
 
-}      // end namespace gmx
+} // end namespace gmx
 
-#endif //GROMACS_RESTRAINT_MANAGER_H
+#endif // GROMACS_RESTRAINT_MANAGER_H