Getter for mapped paths from KeyValueTreeTransform
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 2 Oct 2016 05:20:12 +0000 (08:20 +0300)
committerDavid van der Spoel <davidvanderspoel@gmail.com>
Thu, 13 Oct 2016 06:45:37 +0000 (08:45 +0200)
commit8e7ac934c8cc91923f85f0840b260e8bfd43d433
treecf7a692d21503ecda5a71632d0c2d57530b42790
parentf00035324e17c41088ee776503a5835eec3baeba
Getter for mapped paths from KeyValueTreeTransform

This allows identifying which values the transform will use.  In the
long run, this may be replaced with another mechanism (or removed
altogether), but for now, this makes it easier to do piecewise
transition from old mdp parsing to using KeyValueTree and options.

Currently, the values are returned in alphabetical order, but subsequent
work may need this in the order the rules are added.  That will be easy
to change internally to the transform.

Change-Id: I3f225ce4f693644e5ac17685f0a887eec02807a8
src/gromacs/utility/keyvaluetreetransform.cpp
src/gromacs/utility/keyvaluetreetransform.h
src/gromacs/utility/tests/keyvaluetreetransform.cpp
src/gromacs/utility/tests/refdata/TreeValueTransformTest_ObjectFromMultipleStrings.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_ObjectFromString.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_SimpleTransforms.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_SimpleTransformsCaseAndDashInsensitive.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_SimpleTransformsToObject.xml