From 267eaaf5499cc8594a012107bd23935cbbda067f Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 8 Aug 2000 15:28:05 +0000 Subject: [PATCH] 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 --- deal.II/deal.II/include/grid/geometry_info.h | 36 ++++++++++++-------- 1 file changed, 22 insertions(+), 14 deletions(-) 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<> -- 2.39.5