From: Wolfgang Bangerth Date: Sun, 17 Dec 2023 04:38:34 +0000 (-0700) Subject: Better document a class. X-Git-Tag: relicensing~238^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07a1c7cafe2cec67061e02dc97b9bf1b4d3656f8;p=dealii.git Better document a class. --- diff --git a/include/deal.II/fe/fe_values_base.h b/include/deal.II/fe/fe_values_base.h index fd65b76a3b..25664587df 100644 --- a/include/deal.II/fe/fe_values_base.h +++ b/include/deal.II/fe/fe_values_base.h @@ -1558,6 +1558,16 @@ protected: * to the present cell in order to be able to extract the values of the * degrees of freedom on this cell in the get_function_values() and assorted * functions. + * + * The problem is that the iterators given to the various reinit() functions + * can either be Triangulation iterators, or DoFHandler cell or level + * iterators. All three are valid, and provide different functionality that is + * used in different contexts; as a consequence we need to be able to store + * all three. This class provides the ability to store an object of any of + * these types, via a member variable that is a std::variant that encapsulates + * an object of any of the three types. Because a std::variant always stores + * an object of *one* of these types, we wrap the std::variant object into a + * std::optional that allows us to encode a "not yet initialized" state. */ class CellIteratorWrapper {