From: Wolfgang Bangerth Date: Tue, 8 Aug 2000 15:28:05 +0000 (+0000) Subject: Bring classes in proper order: first general template, then X-Git-Tag: v8.0.0~20190 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a89a3fe78a27f4d3ffb050bad1877c6f2ea898ff;p=dealii.git Bring classes in proper order: first general template, then specialization. In fact, the intuitive order is the other way round here, but if we do it like that, then we bring the forward_declarations script into trouble as that doesn't eat forward declarations any more, but only true class declarations, and then we would find the specialization *before* the general template in the forward_declarations.h file. git-svn-id: https://svn.dealii.org/trunk@3239 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/grid/geometry_info.h b/deal.II/deal.II/include/grid/geometry_info.h index 38d0e45252..5e29548f95 100644 --- a/deal.II/deal.II/include/grid/geometry_info.h +++ b/deal.II/deal.II/include/grid/geometry_info.h @@ -16,20 +16,6 @@ #include -template struct GeometryInfo; - -/** - * Pseudo-class for recursive functions in @ref{GeometryInfo}@p{}. - */ -struct GeometryInfo<0> -{ - static const unsigned int vertices_per_cell = 1; - static const unsigned int lines_per_cell = 0; - static const unsigned int quads_per_cell = 0; - static const unsigned int hexes_per_cell = 0; - static const unsigned int children_per_cell = 0; -}; - /** @@ -191,6 +177,28 @@ struct GeometryInfo }; + +/** + * Pseudo-class for recursive functions in + * @ref{GeometryInfo<1>}. Actually this class is a starting point for + * the induction ladder by which the higher @p{GeometryInfo} classes + * are built. + * + * @author Wolfgang Bangerth, Guido Kanschat, 1998, 1999 + */ +template <> +struct GeometryInfo<0> +{ + static const unsigned int vertices_per_cell = 1; + static const unsigned int lines_per_cell = 0; + static const unsigned int quads_per_cell = 0; + static const unsigned int hexes_per_cell = 0; + static const unsigned int children_per_cell = 0; +}; + + + + /*---------------------------- Inline functions --------------------------------*/ template<>