Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::KeyValueTreeTransformRuleBuilder::ToValue< FromType, ToType > Class Template Reference

#include <gromacs/utility/keyvaluetreetransform.h>

+ Inheritance diagram for gmx::KeyValueTreeTransformRuleBuilder::ToValue< FromType, ToType >:
+ Collaboration diagram for gmx::KeyValueTreeTransformRuleBuilder::ToValue< FromType, ToType >:

Description

template<typename FromType, typename ToType>
class gmx::KeyValueTreeTransformRuleBuilder::ToValue< FromType, ToType >

Properties that can be specified after from().to().

Template Parameters
FromTypeType specified for from() to map from.
ToTypeType specified for to() to map to.

Public Member Functions

 ToValue (KeyValueTreeTransformRuleBuilder *builder)
 Creates a parameter provider object within given builder.
 
void transformWith (std::function< ToType(const FromType &)> transform)
 Specifies the transformation function to convert the value from FromType to ToType.
 

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
KeyValueTreeTransformRuleBuilderbuilder_
 The parent builder.
 

The documentation for this class was generated from the following file: