*/
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