Struct cmesh_example_base

Inheritance Relationships

Derived Type

Struct Documentation

struct cmesh_example_base

A base class for cmesh examples.

For pretty debug output a function to translate the parameters of the example to a string should be provided.

Subclassed by cmesh_example_with_parameter< Args >

Public Functions

inline cmesh_example_base(std::string name)

Construct a new base example.

An example must have at least have a name.

Parameters:

name

virtual t8_cmesh_t cmesh_create() const = 0

A function to create a cmesh.

The class should not own the cmesh.

Returns:

t8_cmesh_t

virtual void param_to_string(std::string &out) const = 0

Copy the name and the parameters of this example into a string.

Parameters:

out

Public Members

std::string name

Name of the cmesh examples.