Gromacs  2026.0-dev-20251119-5f0a571d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
imdpoptionprovider_helpers.h File Reference
#include <string>
#include <string_view>
#include "gromacs/utility/keyvaluetreebuilder.h"
#include "gromacs/utility/keyvaluetreetransform.h"
#include "gromacs/utility/strconvert.h"
+ Include dependency graph for imdpoptionprovider_helpers.h:
+ This graph shows which files directly or indirectly include this file:

Description

Defines helper functions to support mdp option transformation and output.

Functions

template<class ToType , class TransformWithFunctionType >
void gmx::addMdpTransformFromString (IKeyValueTreeTransformRules *rules, TransformWithFunctionType transformationFunction, std::string_view moduleName, std::string_view optionName)
 Helper to declare mdp transform rules. More...
 
template<class ValueType >
void gmx::addMdpOutputValue (KeyValueTreeObjectBuilder *builder, std::string_view moduleName, std::string_view optionName, const ValueType &optionValue)
 Add an mdp value to output KVT with a module-prefixed name. More...
 
void gmx::addMdpOutputComment (KeyValueTreeObjectBuilder *builder, std::string_view moduleName, std::string_view optionName, const std::string &comment)
 Add a comment for an mdp value with a module-prefixed name. More...