Gromacs  2025-dev-20240906-b7d3419
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
gmx::KeyValueTreeTransformRuleBuilder::ToObject< FromType > Class Template Reference

#include <gromacs/utility/include/gromacs/utility/keyvaluetreetransform.h>

+ Inheritance diagram for gmx::KeyValueTreeTransformRuleBuilder::ToObject< FromType >:
+ Collaboration diagram for gmx::KeyValueTreeTransformRuleBuilder::ToObject< FromType >:

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...
 

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.
 

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: