//! \cond
System::Impl::~Impl() = default;
-System::Impl::Impl(System::Impl &&) noexcept = default;
+System::Impl::Impl(System::Impl&&) noexcept = default;
-System::Impl &System::Impl::operator=(System::Impl &&source) noexcept
+System::Impl& System::Impl::operator=(System::Impl&& source) noexcept
{
if (this != &source)
{
}
//! \endcond
-std::shared_ptr<Session> System::launch(const std::shared_ptr<Context> &context)
+std::shared_ptr<Session> System::launch(const std::shared_ptr<Context>& context)
{
return impl_->launch(context);
}
//! \cond
-System::System(std::unique_ptr<Impl> implementation) :
- impl_ {std::move(implementation)}
+System::System(std::unique_ptr<Impl> implementation) : impl_{ std::move(implementation) }
{
GMX_ASSERT(impl_, "Constructor requires valid implementation object.");
}
System::~System() = default;
//! \endcond
-System::System(System &&) noexcept = default;
+System::System(System&&) noexcept = default;
-System &System::operator=(System &&) noexcept = default;
+System& System::operator=(System&&) noexcept = default;
-System fromTprFile(const std::string &filename)
+System fromTprFile(const std::string& filename)
{
// TODO Confirm the file is readable and parseable and note unique
// identifying information for when the work spec is used in a different
GMX_ASSERT(spec_, "Class invariant implies non-null work specification member.");
}
-std::shared_ptr<Session> System::Impl::launch(const std::shared_ptr<Context> &context)
+std::shared_ptr<Session> System::Impl::launch(const std::shared_ptr<Context>& context)
{
std::shared_ptr<Session> session = nullptr;
if (context != nullptr)
session = context->launch(*workflow_);
GMX_ASSERT(session, "Context::launch() expected to produce non-null session.");
- for (auto && module : spec_->getModules())
+ for (auto&& module : spec_->getModules())
{
// TODO: This should be the job of the launching code that produces the Session.
// Configure the restraints in a restraint manager made available to the session launcher.
- addSessionRestraint(session.get(),
- module);
+ addSessionRestraint(session.get(), module);
}
}
else