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

#include <gromacs/utility/keyvaluetreetransform.h>

Inherits gmx::KeyValueTreeTransformRuleBuilder::Base.

Description

template<typename FromType>
class gmx::KeyValueTreeTransformRuleBuilder::ToObject< FromType >

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

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

Public Member Functions

 ToObject (KeyValueTreeTransformRuleBuilder *builder)
 Creates a parameter provider object within given builder.
 
void transformWith (std::function< void(KeyValueTreeObjectBuilder *, const FromType &)> transform)
 Specifies the transformation function to build the output object. More...
 

Protected Attributes

KeyValueTreeTransformRuleBuilderbuilder_
 The parent builder.
 

Member Function Documentation

template<typename FromType >
void gmx::KeyValueTreeTransformRuleBuilder::ToObject< FromType >::transformWith ( std::function< void(KeyValueTreeObjectBuilder *, const FromType &)>  transform)
inline

Specifies the transformation function to build the output object.

The transform should build the output object with the provided builder.


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