Gromacs
2024.3
|
#include <map>
#include <optional>
#include <string>
#include "gromacs/utility/enumerationhelpers.h"
#include "gromacs/utility/stringutil.h"
#include "stringcompare.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.
Classes | |
class | gmx::StringToEnumValueConverter< EnumType,, stringCompareType, stripStrings > |
A class to convert a string to an enum value of type EnumType . More... | |
Enumerations | |
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... | |