Gromacs  2022.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations
stringtoenumvalueconverter.h File Reference
#include <map>
#include <optional>
#include <string>
#include "enumerationhelpers.h"
#include "stringcompare.h"
#include "stringutil.h"
+ Include dependency graph for stringtoenumvalueconverter.h:


Defines helper function object for class enumerations.

This helper type facilitates efficient lookup of values from an enumeration identified by a string, given a pre-declared mapping of values to such strings.

It is separated from enumerationhelpers.h because it is not as widely used and brings in several extra dependencies not needed by that header.

Mark Abraham


class  gmx::StringToEnumValueConverter< EnumType,, stringCompareType, stripStrings >
 A class to convert a string to an enum value of type EnumType. More...


enum  gmx::StripStrings : int { gmx::StripStrings::No, gmx::StripStrings::Yes }
 Enum class for whether StringToEnumValueConverter will strip strings of leading and trailing whitespace before comparison. More...