Gromacs  2021.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Static Public Member Functions
gmx::test::anonymous_namespace{checkpointdata.cpp}::TestValues Class Reference

Description

Unified looping over test data.

This class allows to write a loop over test data as for (const auto& value : TestValues::testValueGenerator<type>()) where type can be any of std::string, int, int64_t, bool, float, double, std::vector<[std::string, int, int64_6, float, double]>, or tensor.

Classes

class  TestValueGenerator
 Helper class allowing to loop over test values. More...
 

Public Member Functions

template<>
const std::vector< std::string > & getTestVector ()
 
template<>
const std::vector< int > & getTestVector ()
 
template<>
const std::vector< int64_t > & getTestVector ()
 
template<>
const std::vector< float > & getTestVector ()
 
template<>
const std::vector< double > & getTestVector ()
 

Static Public Member Functions

template<typename T >
static TestValueGenerator< T > testValueGenerator ()
 Static function returning a TestValueGenerator of type T. More...
 

Member Function Documentation

template<typename T >
static TestValueGenerator<T> gmx::test::anonymous_namespace{checkpointdata.cpp}::TestValues::testValueGenerator ( )
inlinestatic

Static function returning a TestValueGenerator of type T.

Template Parameters
Ttype of values generated
Returns
TestValueGenerator<T>

The documentation for this class was generated from the following file: