Document key-value tree transforms and improve checks
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 11 Nov 2016 19:02:19 +0000 (21:02 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 9 Feb 2017 13:10:49 +0000 (14:10 +0100)
commit030e6e834825a018b62cdad91f93ed9002d2c6b3
tree19737ed31cfb3f8e3886c1e413f8e667861dbcfe
parente718b39a99453b15b1791ea0ddfbfb6c6765d975
Document key-value tree transforms and improve checks

Add assertions to provide better messages in case of unintended usage,
and document the interface used to specify rules.  This should cover all
of the key-value tree code that is currently exposed for mdp input
handling through IInputRecExtension, with the exception of
KeyValueTreeObjectBuilder that is exposed if one uses toObject().

Change-Id: Ic36a2c41ba418abfa46cc9b37d6cd7eed5a896b6
src/gromacs/utility/keyvaluetree.cpp
src/gromacs/utility/keyvaluetree.h
src/gromacs/utility/keyvaluetreebuilder.h
src/gromacs/utility/keyvaluetreetransform.cpp
src/gromacs/utility/keyvaluetreetransform.h