Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Enumerations | Functions
stringtoenumvalueconverter.cpp File Reference
#include "gmxpre.h"
#include "gromacs/utility/stringtoenumvalueconverter.h"
#include <gtest/gtest.h>
+ Include dependency graph for stringtoenumvalueconverter.cpp:

Description

Tests for string-to-enum-value helper functor.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Enumerations

enum  gmx::anonymous_namespace{stringtoenumvalueconverter.cpp}::Foo : int {
  Bar, Ugh, Fooz, Weird,
  Empty, Count, Default = Ugh
}
 Type to use in testing.
 

Functions

const char * gmx::anonymous_namespace{stringtoenumvalueconverter.cpp}::enumValueToString (Foo f)
 Declare the conventional conversion function.
 
const char * gmx::anonymous_namespace{stringtoenumvalueconverter.cpp}::enumValueToLetterAsString (Foo f)
 Declare an atypical conversion function.
 
::std::ostream & gmx::anonymous_namespace{stringtoenumvalueconverter.cpp}::operator<< (::std::ostream &os, const std::optional< Foo > &f)
 Pretty-printer for GoogleTest to use.