/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2015, by the GROMACS development team, led by
+ * Copyright (c) 2015,2019, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
namespace gmx
{
-IOptionsBehavior::~IOptionsBehavior()
-{
-}
+IOptionsBehavior::~IOptionsBehavior() {}
-OptionsBehaviorCollection::OptionsBehaviorCollection(Options *options)
- : options_(options)
-{
-}
+OptionsBehaviorCollection::OptionsBehaviorCollection(Options* options) : options_(options) {}
-OptionsBehaviorCollection::~OptionsBehaviorCollection()
-{
-}
+OptionsBehaviorCollection::~OptionsBehaviorCollection() {}
-void OptionsBehaviorCollection::addBehavior(const OptionsBehaviorPointer &behavior)
+void OptionsBehaviorCollection::addBehavior(const OptionsBehaviorPointer& behavior)
{
behaviors_.reserve(behaviors_.size() + 1);
behavior->initBehavior(options_);
void OptionsBehaviorCollection::optionsFinishing()
{
- for (const OptionsBehaviorPointer &behavior : behaviors_)
+ for (const OptionsBehaviorPointer& behavior : behaviors_)
{
behavior->optionsFinishing(options_);
}
void OptionsBehaviorCollection::optionsFinished()
{
- for (const OptionsBehaviorPointer &behavior : behaviors_)
+ for (const OptionsBehaviorPointer& behavior : behaviors_)
{
behavior->optionsFinished();
}