Gromacs
2024.3
|
#include <gromacs/utility/include/gromacs/utility/keyvaluetreetransform.h>
Properties that can be specified after from().
FromType | Type specified for from() to map from. |
Public Member Functions | |
AfterFrom (KeyValueTreeTransformRuleBuilder *builder) | |
Creates a parameter provider object within given builder. | |
template<typename ToType > | |
ToValue< FromType, ToType > | to (const KeyValueTreePath &path) |
Specifies a rule that maps to a value at given path. More... | |
ToObject< FromType > | toObject (const KeyValueTreePath &path) |
Specifies a rule that maps to an object (collection of named values) at given path. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from gmx::KeyValueTreeTransformRuleBuilder::Base | |
Base (KeyValueTreeTransformRuleBuilder *builder) | |
Creates a parameter provider object within given builder. | |
Protected Attributes inherited from gmx::KeyValueTreeTransformRuleBuilder::Base | |
KeyValueTreeTransformRuleBuilder * | builder_ |
The parent builder. | |
|
inline |
Specifies a rule that maps to a value at given path.
ToType | Type to map to. |
[in] | path | Path to map to. |
It is an error if multiple rules map to the same path, or to a parent path of the target of an existing rule. Note that it is possible to have a to() rule map to a child of a toObject() rule, provided that the path is not created by the object rule.
|
inline |
Specifies a rule that maps to an object (collection of named values) at given path.
[in] | path | Path to map to. |
It is an error if multiple rules map to the same path, or to a parent path of the target of an existing rule. However, it is allowed to have two toObject() rules map to the same path, provided that the properties they produce are distinct.