Template Struct cmesh_cartesian_product_params

Inheritance Relationships

Base Type

Struct Documentation

template<class ...Iter>
struct cmesh_cartesian_product_params : public example_set

Variadic template class that creates an example_set based on the cartesian product of the input parameters.

Template Parameters:

Iter – Iterator types for the input parameter ranges.

Public Functions

inline cmesh_cartesian_product_params()

Default constructor without parameters.

inline cmesh_cartesian_product_params(std::pair<Iter, Iter>... ranges, std::function<t8_cmesh_t(typename Iter::value_type...)> cmesh_function, std::function<std::string(const typename Iter::value_type&...)> param_to_string, std::string name)

Constructor with parameters.

Parameters:
  • ranges[in] Pairs of parameter ranges for each Iter type.

  • cmesh_function[in] Function to create a cmesh from parameter values.

  • param_to_string[in] Function to convert parameter values to a string.

  • name[in] of the example set of cmeshes.

inline cmesh_cartesian_product_params(std::pair<Iter, Iter>... ranges, std::vector<std::function<t8_cmesh_t(typename Iter::value_type...)>> cmesh_functions, std::function<std::string(const typename Iter::value_type&...)> param_to_string, std::vector<std::string> names)

Constructor with parameters with more than one functions to create a cmesh.

Parameters:
  • ranges[in] Pairs of parameter ranges for each Iter type.

  • cmesh_functions[in] Functions to create a cmesh from parameter values.

  • param_to_string[in] Function to convert parameter values to a string.

  • names[in] of the example sets of constructed cmeshes.