Simplify selection parsing methods signature.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 19 May 2012 06:29:04 +0000 (09:29 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sat, 19 May 2012 06:29:04 +0000 (09:29 +0300)
commit2173b348dd0f75c34bd0a378d6884c7d30fac97b
treea70eed4f47f1b5c1059ef861ce4659883e7c85bf
parent4a37ce5ea1ecc9f21321d0c46213ffe06b91d3b9
Simplify selection parsing methods signature.

Selection parsing methods in SelectionCollection now return the list of
parsed selections instead of using an output variable.  This makes it
more obvious from the signature alone how the methods should be used.
Also, the ability to append to an existing vector was not used in any
code currently (except in tests), and the code to do that with the new
signature is still simple.

Change-Id: I344e4c15367e956b4294d18f56f4da34ccf42e27
src/gromacs/selection/selectioncollection-impl.h
src/gromacs/selection/selectioncollection.cpp
src/gromacs/selection/selectioncollection.h
src/gromacs/selection/selectionoptionmanager.cpp
src/gromacs/selection/tests/selectioncollection.cpp