Make additional use of ParameterGroup
#404
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request summary
Modify some existing parsing logic to make use of
ParameterGroup
.Detailed Description
The
ParameterGroup
class was introduced back in #341 (the main body of that PR calls the classParameterAccessor
-- the name was changed based on feedback). It is a class whose sole-purpose is to provide access to parameters within a specific parameter-group (without specifying the full path to a parameter).This functionality was duplicated in the pre-existing
Parameters
class. However, theParameters
class already provided a LOT of other functionality and this particular functionality is achieved by managing a bunch of internal state.Part of the intention when introducing
ParameterGroup
was to eventually replace existing code that already made use of this functionality provided by theParameters
class so that it now makes use of theParametersGroup
class instead (in other words, the underlying logic is not changing). This is what this PR does.The benefits are twofold:
Parameters
class (this will actually be somewhat helpful for simplifying code in SMP-mode).I plan to remove the duplicated functionality in a future, separate PR since it will involve a number of modifications to existing unit-tests & it would be helpful to get the current changes into the main codebase. (Plus these changes have been kicking around on my computer for 3 months and I want to get them off my plate)
EDIT: MAKE SURE THAT YOU SEE THAT ALL CIRCLECI TESTS HAVE PASSED BEFORE MERGING, THEY DON'T ALL SEEM TO APPEAR RIGHT NOW