]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
It makes Clang happier if we forward declare things as struct instead of class if...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Aug 2011 00:00:54 +0000 (00:00 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 21 Aug 2011 00:00:54 +0000 (00:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@24128 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/dofs/dof_accessor.h
deal.II/include/deal.II/dofs/dof_handler.h
deal.II/include/deal.II/grid/tria.h
deal.II/include/deal.II/grid/tria_accessor.h
deal.II/include/deal.II/hp/dof_handler.h

index 54e6a49ca99ea4b44c9a98ba54ab3fb2658c6990..4328240c6f02a08fb62a693fc051d5be99a284be 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -748,10 +748,10 @@ class DoFAccessor : public internal::DoFAccessor::Inheritance<structdim, DH::dim
     template <int dim, int spacedim> friend class DoFHandler;
     template <int dim, int spacedim> friend class hp::DoFHandler;
 
-    friend class internal::DoFHandler::Policy::Implementation;
-    friend class internal::DoFHandler::Implementation;
-    friend class internal::hp::DoFHandler::Implementation;
-    friend class internal::DoFCellAccessor::Implementation;
+    friend struct internal::DoFHandler::Policy::Implementation;
+    friend struct internal::DoFHandler::Implementation;
+    friend struct internal::hp::DoFHandler::Implementation;
+    friend struct internal::DoFCellAccessor::Implementation;
 };
 
 
@@ -1372,10 +1372,10 @@ class DoFAccessor<0,DH<1,spacedim> > : public TriaAccessor<0,1,spacedim>
     template <int, int> friend class DoFHandler;
     template <int, int> friend class hp::DoFHandler;
 
-    friend class internal::DoFHandler::Policy::Implementation;
-    friend class internal::DoFHandler::Implementation;
-    friend class internal::hp::DoFHandler::Implementation;
-    friend class internal::DoFCellAccessor::Implementation;
+    friend struct internal::DoFHandler::Policy::Implementation;
+    friend struct internal::DoFHandler::Implementation;
+    friend struct internal::hp::DoFHandler::Implementation;
+    friend struct internal::DoFCellAccessor::Implementation;
 };
 
 
@@ -2068,7 +2068,7 @@ class DoFCellAccessor :  public DoFAccessor<DH::dimension,DH>
                                      * function
                                      */
     template <int dim, int spacedim> friend class DoFHandler;
-    friend class internal::DoFCellAccessor::Implementation;
+    friend struct internal::DoFCellAccessor::Implementation;
 };
 
 
index 49f225b0a61a0e1bbd6f6e3ab8fafbee19efd99f..5daca5c76861f3a1515ddfb5a50ecd0e6f6004d1 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -138,7 +138,7 @@ namespace internal
  * <tt>renumber_dofs(vector<unsigned int>)</tt> function with the array, which
  * converts old into new degree of freedom indices.
  *
- * 
+ *
  * <h3>Serializing (loading or storing) DoFHandler objects</h3>
  *
  * Like many other classes in deal.II, the DoFHandler class can stream
@@ -1237,7 +1237,7 @@ class DoFHandler  :  public Subscriptor
    void load (Archive & ar, const unsigned int version);
 
    BOOST_SERIALIZATION_SPLIT_MEMBER()
-    
+
                                     /**
                                      * @todo Replace by ExcInternalError.
                                      */
@@ -1395,11 +1395,11 @@ class DoFHandler  :  public Subscriptor
                                      */
     template <int, class> friend class DoFAccessor;
     template <class> friend class DoFCellAccessor;
-    friend class internal::DoFAccessor::Implementation;
-    friend class internal::DoFCellAccessor::Implementation;
+    friend struct internal::DoFAccessor::Implementation;
+    friend struct internal::DoFCellAccessor::Implementation;
 
-    friend class internal::DoFHandler::Implementation;
-    friend class internal::DoFHandler::Policy::Implementation;
+    friend struct internal::DoFHandler::Implementation;
+    friend struct internal::DoFHandler::Policy::Implementation;
 };
 
 
@@ -1498,14 +1498,14 @@ void DoFHandler<dim,spacedim>::save (Archive & ar,
   ar & number_cache;
   ar & levels;
   ar & faces;
-  
+
   // write out the number of triangulation cells and later check
   // during loading that this number is indeed correct; same with something that
   // identifies the FE and the policy
   unsigned int n_cells = tria->n_cells();
   std::string  fe_name = selected_fe->get_name();
   std::string  policy_name = typeid(*policy).name();
-  
+
   ar & n_cells & fe_name & policy_name;
 }
 
@@ -1518,7 +1518,7 @@ void DoFHandler<dim,spacedim>::load (Archive & ar,
   ar & block_info_object;
   ar & vertex_dofs;
   ar & number_cache;
-  
+
   // boost::serialization can restore pointers just fine, but if the
   // pointer object still points to something useful, that object is
   // not destroyed and we end up with a memory leak. consequently,
@@ -1528,7 +1528,7 @@ void DoFHandler<dim,spacedim>::load (Archive & ar,
   levels.resize (0);
   delete faces;
   faces = 0;
-  
+
   ar & levels;
   ar & faces;
 
@@ -1536,10 +1536,10 @@ void DoFHandler<dim,spacedim>::load (Archive & ar,
   unsigned int n_cells;
   std::string  fe_name;
   std::string  policy_name;
-  
-  ar & n_cells & fe_name & policy_name;  
 
-  AssertThrow (n_cells == tria->n_cells(), 
+  ar & n_cells & fe_name & policy_name;
+
+  AssertThrow (n_cells == tria->n_cells(),
               ExcMessage ("The object being loaded into does not match the triangulation "
                           "that has been stored previously."));
   AssertThrow (fe_name == selected_fe->get_name(),
index f9954ab1c2299e95fcd8be46216ca1c6e3e1f4e8..8c5b8921287ff965361f75ba7d3684e8734d915c 100644 (file)
@@ -262,13 +262,13 @@ namespace internal
                                           * of this object.
                                           */
         std::size_t memory_consumption () const;
-       
+
        /**
-        * Read or write the data of this object to or 
+        * Read or write the data of this object to or
         * from a stream for the purpose of serialization
-        */ 
+        */
        template <class Archive>
-       void serialize (Archive & ar, 
+       void serialize (Archive & ar,
                        const unsigned int version);
     };
 
@@ -329,11 +329,11 @@ namespace internal
         std::size_t memory_consumption () const;
 
        /**
-        * Read or write the data of this object to or 
+        * Read or write the data of this object to or
         * from a stream for the purpose of serialization
-        */ 
+        */
        template <class Archive>
-       void serialize (Archive & ar, 
+       void serialize (Archive & ar,
                        const unsigned int version);
     };
 
@@ -395,11 +395,11 @@ namespace internal
         std::size_t memory_consumption () const;
 
        /**
-        * Read or write the data of this object to or 
+        * Read or write the data of this object to or
         * from a stream for the purpose of serialization
-        */ 
+        */
        template <class Archive>
-       void serialize (Archive & ar, 
+       void serialize (Archive & ar,
                        const unsigned int version);
     };
   }
@@ -3757,11 +3757,11 @@ class Triangulation : public Subscriptor
     template <int,int,int> friend class TriaAccessor;
     friend class CellAccessor<dim, spacedim>;
 
-    friend class internal::TriaAccessor::Implementation;
+    friend struct internal::TriaAccessor::Implementation;
 
     friend class hp::DoFHandler<dim,spacedim>;
 
-    friend class internal::Triangulation::Implementation;
+    friend struct internal::Triangulation::Implementation;
 };
 
 
@@ -3772,7 +3772,7 @@ namespace internal
   namespace Triangulation
   {
     template <class Archive>
-    void NumberCache<1>::serialize (Archive & ar, 
+    void NumberCache<1>::serialize (Archive & ar,
                                    const unsigned int)
     {
       ar & n_levels;
@@ -3780,28 +3780,28 @@ namespace internal
       ar & n_active_lines & n_active_lines_level;
     }
 
-    
+
     template <class Archive>
-    void NumberCache<2>::serialize (Archive & ar, 
+    void NumberCache<2>::serialize (Archive & ar,
                                    const unsigned int version)
     {
       this->NumberCache<1>::serialize (ar, version);
-      
+
       ar & n_quads & n_quads_level;
       ar & n_active_quads & n_active_quads_level;
     }
-    
+
 
     template <class Archive>
-    void NumberCache<3>::serialize (Archive & ar, 
+    void NumberCache<3>::serialize (Archive & ar,
                                    const unsigned int version)
     {
       this->NumberCache<2>::serialize (ar, version);
-      
+
       ar & n_hexes & n_hexes_level;
       ar & n_active_hexes & n_active_hexes_level;
     }
-    
+
   }
 }
 
@@ -3849,7 +3849,7 @@ Triangulation<dim, spacedim>::get_vertices () const
 template <int dim, int spacedim>
 template <class Archive>
 void
-Triangulation<dim,spacedim>::save (Archive & ar, 
+Triangulation<dim,spacedim>::save (Archive & ar,
                                   const unsigned int) const
 {
                                   // as discussed in the documentation, do
@@ -3861,7 +3861,7 @@ Triangulation<dim,spacedim>::save (Archive & ar,
   ar & faces;
   ar & vertices;
   ar & vertices_used;
-  
+
   ar & anisotropic_refinement;
   ar & number_cache;
 
@@ -3873,13 +3873,13 @@ Triangulation<dim,spacedim>::save (Archive & ar,
 template <int dim, int spacedim>
 template <class Archive>
 void
-Triangulation<dim,spacedim>::load (Archive & ar, 
+Triangulation<dim,spacedim>::load (Archive & ar,
                                   const unsigned int)
 {
                                   // clear previous content. this also calls
                                   // the respective signal
   clear ();
-  
+
                                   // as discussed in the documentation, do
                                   // not store the signals as well as
                                   // boundary and manifold descrption
@@ -3889,7 +3889,7 @@ Triangulation<dim,spacedim>::load (Archive & ar,
   ar & faces;
   ar & vertices;
   ar & vertices_used;
-  
+
   ar & anisotropic_refinement;
   ar & number_cache;
 
index 426ed34b517480a6f22183d9719d1e5c3a48fda0..d6564f713450d59847274b4e05b74b884e8184c9 100644 (file)
@@ -1579,8 +1579,8 @@ class TriaAccessor : public TriaAccessorBase<structdim, dim, spacedim>
 
     template <int, int> friend class Triangulation;
 
-    friend class internal::Triangulation::Implementation;
-    friend class internal::TriaAccessor::Implementation;
+    friend struct internal::Triangulation::Implementation;
+    friend struct internal::TriaAccessor::Implementation;
 };
 
 
@@ -1855,7 +1855,7 @@ class TriaAccessor<0, 1, spacedim>
                                      * refers to.
                                      */
     Point<spacedim> center () const;
-    
+
                                     /**
                                      * Pointer to the @p ith line
                                      * bounding this object. Will
@@ -2879,8 +2879,7 @@ class CellAccessor :  public TriaAccessor<dim,dim,spacedim>
 
     template <int, int> friend class Triangulation;
 
-    friend class internal::Triangulation::Implementation;
-
+    friend struct internal::Triangulation::Implementation;
 };
 
 
index e3cc6aa144c9600a17ea540aaf9dd9f27691e69c..80f7d2bd3b13e14ee1c8f230a09891b78b394fa6 100644 (file)
@@ -1123,10 +1123,10 @@ namespace hp
       void create_active_fe_table ();
 
                                        /**
-                                        *  Functions that will be triggered 
-                                       *  through signals whenever the 
+                                        *  Functions that will be triggered
+                                       *  through signals whenever the
                                        *  triangulation is modified.
-                                       * 
+                                       *
                                        *  Here they are used to
                                         *  administrate the the
                                         *  active_fe_fields during the
@@ -1134,7 +1134,7 @@ namespace hp
                                         */
       void pre_refinement_action ();
       void post_refinement_action ();
-      
+
 
                                       /**
                                        * Compute identities between
@@ -1295,14 +1295,14 @@ namespace hp
        * triangulation changes.
        */
       std::vector<boost::signals2::connection> tria_listeners;
-      
+
                                        /**
                                         * Make accessor objects friends.
                                         */
       template <int, class> friend class dealii::DoFAccessor;
       template <class> friend class dealii::DoFCellAccessor;
-      friend class internal::DoFAccessor::Implementation;
-      friend class internal::DoFCellAccessor::Implementation;
+      friend struct internal::DoFAccessor::Implementation;
+      friend struct internal::DoFCellAccessor::Implementation;
 
                                        /**
                                         * Likewise for DoFLevel
@@ -1313,7 +1313,7 @@ namespace hp
                                         */
       template <int> friend class internal::hp::DoFLevel;
       template <int> friend class internal::hp::DoFObjects;
-      friend class internal::hp::DoFHandler::Implementation;
+      friend struct internal::hp::DoFHandler::Implementation;
   };
 
 

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.