Expand ListOfLists pushBack() functionality
commite3b4490d9c8af51e50f86e060fc96caae035e7c6
authorBerk Hess <hess@kth.se>
Sun, 15 Dec 2019 21:45:48 +0000 (15 22:45 +0100)
committerBerk Hess <hess@kth.se>
Thu, 19 Dec 2019 12:56:28 +0000 (19 13:56 +0100)
treea1193915c846d8b32d9e9768fd1801433ae31f68
parentd2df078ba2868cb20ff76696c1d14bfca1ab21f5
Expand ListOfLists pushBack() functionality

Added member pushBackListOfSize(int) to ListOfLists to add a list of a
given size to the list so its elements can be set. Used this in
applicable cases and added back() to ListOfLists to facilitate access
to that newly added list. Added front() for symmetry. Added tests.

Limited ListOfLists to arithmetic types, as there is no compelling
use case for other types and it simplifies the class.

Also fixed two minor issues that came up during review.

Change-Id: Ia05c270f9c337902c78f97e9613e45e82a21df63
src/gromacs/domdec/domdec_topology.cpp
src/gromacs/gmxpreprocess/gpp_nextnb.cpp
src/gromacs/nbnxm/benchmark/bench_system.cpp
src/gromacs/selection/tests/nbsearch.cpp
src/gromacs/topology/tests/exclusionblocks.cpp
src/gromacs/utility/listoflists.h
src/gromacs/utility/tests/listoflists.cpp