Apply clang-format to source tree
[alexxy/gromacs.git] / src / gromacs / modularsimulator / topologyholder.h
index 7a59d85d736ead1023cc2f87a3755cb541aae7e1..37170225b988ef967fcdd07662789a9533e71937 100644 (file)
@@ -68,39 +68,38 @@ class MDAtoms;
  */
 class TopologyHolder final
 {
-    public:
-        //! Constructor
-        TopologyHolder(
-            const gmx_mtop_t &globalTopology,
-            const t_commrec  *cr,
-            const t_inputrec *inputrec,
-            t_forcerec       *fr,
-            MDAtoms          *mdAtoms,
-            Constraints      *constr,
-            gmx_vsite_t      *vsite);
+public:
+    //! Constructor
+    TopologyHolder(const gmx_mtop_t& globalTopology,
+                   const t_commrec*  cr,
+                   const t_inputrec* inputrec,
+                   t_forcerec*       fr,
+                   MDAtoms*          mdAtoms,
+                   Constraints*      constr,
+                   gmx_vsite_t*      vsite);
 
-        //! Get global topology
-        const gmx_mtop_t &globalTopology() const;
+    //! Get global topology
+    const gmx_mtop_t& globalTopology() const;
 
-        //! Register topology client
-        void registerClient(ITopologyHolderClient *client);
+    //! Register topology client
+    void registerClient(ITopologyHolderClient* client);
 
-        //! Allow domdec to update local topology
-        friend class DomDecHelper;
+    //! Allow domdec to update local topology
+    friend class DomDecHelper;
 
-    private:
-        //! Constant reference to the global topolgy
-        const gmx_mtop_t               &globalTopology_;
-        //! Pointer to the currently valid local topology
-        std::unique_ptr<gmx_localtop_t> localTopology_;
+private:
+    //! Constant reference to the global topolgy
+    const gmx_mtop_t& globalTopology_;
+    //! Pointer to the currently valid local topology
+    std::unique_ptr<gmx_localtop_t> localTopology_;
 
-        //! List of clients to be updated if local topology changes
-        std::vector<ITopologyHolderClient*> clients_;
+    //! List of clients to be updated if local topology changes
+    std::vector<ITopologyHolderClient*> clients_;
 
-        //! Update local topology
-        void updateLocalTopology();
+    //! Update local topology
+    void updateLocalTopology();
 };
 
-}      // namespace gmx
+} // namespace gmx
 
 #endif // GMX_MODULARSIMULATOR_TOPOLOGYHOLDER_H