Skip to content

Commit

Permalink
Cleaning (?) headers (plumed#941)
Browse files Browse the repository at this point in the history
* removed the actionRegister shortcut from bias

* removed the CLTollRegister shortcut from cltools (why that is in core and not in cltools?)

* Again removed some shortcuts to actionRegister.h

* removed the ActionRegister.h shorcuts

* rectified the style changes due to clang-format

* now compiles

* updated the changelog for developers in the 2.10

---------

Co-authored-by: Daniele Rapetti <[email protected]>
  • Loading branch information
Iximiel and Iximiel authored Jun 3, 2023
1 parent b10067f commit 57458b6
Show file tree
Hide file tree
Showing 85 changed files with 80 additions and 226 deletions.
2 changes: 2 additions & 0 deletions CHANGES/v2.10.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@

This page contains changes that will end up in 2.10

- Changes relevant for developers:
- Removed some shortcuts for `ActionRegister.h` (from the modules bias colvar function sasa and vatom) and `CLToolRegister.h` (from the module cltools), now the two headers can only be included with `#include "core/ActionRegister.h"` or `#include "core/CLToolRegister.h"`.
2 changes: 1 addition & 1 deletion src/annfunc/ANN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "function/Function.h"
#include "function/ActionRegister.h"
#include "core/ActionRegister.h"
#include "cassert"

#include <string>
Expand Down
2 changes: 1 addition & 1 deletion src/bias/ABMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "tools/Random.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include <ctime>

namespace PLMD {
Expand Down
25 changes: 0 additions & 25 deletions src/bias/ActionRegister.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/bias/BiasValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace bias {
Expand Down
2 changes: 1 addition & 1 deletion src/bias/ExtendedLagrangian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/Random.h"
#include "core/PlumedMain.h"
#include "core/Atoms.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bias/External.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/Grid.h"
#include "tools/Exception.h"
#include "tools/File.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bias/LWalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace bias {
Expand Down
2 changes: 1 addition & 1 deletion src/bias/MetaD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "core/ActionSet.h"
#include "core/PlumedMain.h"
#include "core/Atoms.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bias/MovingRestraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace bias {
Expand Down
2 changes: 1 addition & 1 deletion src/bias/PBMetaD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "core/ActionSet.h"
#include "core/PlumedMain.h"
#include "core/Atoms.h"
Expand Down
2 changes: 1 addition & 1 deletion src/bias/Restraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace bias {
Expand Down
2 changes: 1 addition & 1 deletion src/bias/UWalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Bias.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace bias {
Expand Down
25 changes: 0 additions & 25 deletions src/cltools/CLToolRegister.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/cltools/Completion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "config/Config.h"
#include "core/ActionRegister.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "core/PlumedMain.h"
#include "core/ActionSet.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/GenExample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "config/Config.h"
#include "core/ActionRegister.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/GenJson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "config/Config.h"
#include "core/ActionRegister.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/GenTemplate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "core/ActionRegister.h"
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/Info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "config/Config.h"
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/Manual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "config/Config.h"
#include "core/ActionRegister.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/PdbRenumber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "core/ActionRegister.h"
#include "tools/IFile.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/SimpleMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "core/PlumedMain.h"
#include "tools/Vector.h"
#include "tools/Random.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/SumHills.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "core/Action.h"
#include "core/ActionRegister.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/kT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "tools/Tools.h"
#include "config/Config.h"
#include "tools/Units.h"
Expand Down
2 changes: 1 addition & 1 deletion src/cltools/pesmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CLTool.h"
#include "CLToolRegister.h"
#include "core/CLToolRegister.h"
#include "core/PlumedMain.h"
#include "tools/Vector.h"
#include "tools/Random.h"
Expand Down
25 changes: 0 additions & 25 deletions src/colvar/ActionRegister.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/colvar/Angle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/Angle.h"

namespace PLMD {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/Cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace colvar {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/Constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "core/PlumedMain.h"
#include "core/Atoms.h"

Expand Down
2 changes: 1 addition & 1 deletion src/colvar/ContactMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "tools/NeighborList.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/SwitchingFunction.h"

namespace PLMD {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/Coordination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CoordinationBase.h"
#include "tools/SwitchingFunction.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace colvar {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/DHEnergy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "CoordinationBase.h"
#include "tools/SwitchingFunction.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "core/PlumedMain.h"
#include "core/Atoms.h"

Expand Down
2 changes: 1 addition & 1 deletion src/colvar/DRMSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "core/PlumedMain.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/PDB.h"
#include "reference/DRMSD.h"
#include "reference/MetricRegister.h"
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/Dimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "core/PlumedMain.h"

namespace PLMD {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/Dipole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"

namespace PLMD {
namespace colvar {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/Distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
along with plumed. If not, see <http://www.gnu.org/licenses/>.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/Pbc.h"

namespace PLMD {
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/EEFSolv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/* This class was originally written by Thomas Loehr */

#include "Colvar.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "core/ActionSet.h"
#include "core/PlumedMain.h"
#include "core/GenericMolInfo.h"
Expand Down
2 changes: 1 addition & 1 deletion src/colvar/ERMSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "Colvar.h"
#include "core/PlumedMain.h"
#include "ActionRegister.h"
#include "core/ActionRegister.h"
#include "tools/PDB.h"
#include "tools/ERMSD.h"
#include "core/Atoms.h"
Expand Down
Loading

0 comments on commit 57458b6

Please sign in to comment.