]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bring classes in proper order: first general template, then
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Aug 2000 15:28:05 +0000 (15:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Aug 2000 15:28:05 +0000 (15:28 +0000)
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

index 38d0e4525262451b0ded8bd9ccca4981715f37c9..5e29548f95bb597a6edad9bbc123a6ece5d9b012 100644 (file)
 
 #include <base/exceptions.h>
 
-template <int _dim> struct GeometryInfo;
-
-/**
- * Pseudo-class for recursive functions in @ref{GeometryInfo}@p{<dim>}.
- */
-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<>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.