Relocate MpiContextManager.
[alexxy/gromacs.git] / api / gmxapi / cpp / session_impl.h
index 9d07ac7cb2165bfe0b7dd621e2566f5a1b056fb8..3d9699e5cf06765d1565fe09be312dac32052b98 100644 (file)
@@ -60,9 +60,8 @@ namespace gmxapi
 {
 
 // Forward declaration
-class MpiContextManager; // Locally defined in session.cpp
-class ContextImpl;       // locally defined in context.cpp
-class SignalManager;     // defined in mdsignals_impl.h
+class ContextImpl;   // locally defined in context.cpp
+class SignalManager; // defined in mdsignals_impl.h
 
 /*!
  * \brief Implementation class for executing sessions.
@@ -202,18 +201,12 @@ private:
      * \brief Extend the life of the owning context.
      *
      * The session will get handles for logging, UI status messages,
-     * and other facilities through this interface.
+     * and other facilities through this interface. This is a facility
+     * provided by the client to the Session implementation during
+     * Context.launch().
      */
     std::shared_ptr<ContextImpl> context_;
 
-    /*!
-     * \brief RAII management of gmx::init() and gmx::finalize()
-     *
-     * Uses smart pointer to avoid exposing type definition.
-     * \todo Not fully implemented.
-     */
-    std::unique_ptr<MpiContextManager> mpiContextManager_;
-
     /*!
      * \brief Simulation runner object.
      *
@@ -224,6 +217,10 @@ private:
 
     /*!
      * \brief An active session owns the resources it is using.
+     *
+     * This encapsulate details of the run time context that the
+     * Session makes available to the simulator, tied to the
+     * lifetime of the Session.
      */
     gmx::SimulationContext simulationContext_;