]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace QCollection::get_quadrature() and n_quadratures() by operator[] and size()
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 10 Feb 2006 12:36:26 +0000 (12:36 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 10 Feb 2006 12:36:26 +0000 (12:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@12292 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/q_collection.h
deal.II/deal.II/source/fe/hp_fe_values.cc
deal.II/deal.II/source/fe/q_collection.cc

index 23e0cea93c6ded1d9a1e9d55fa4a64da6d2f9b3a..a4541256346e7e6a2e3a791189a458d5fb1af1bf 100644 (file)
@@ -60,7 +60,7 @@ namespace hp
                                         * Returns the number of quadrature
                                         * pointers stored in this object.
                                         */
-      unsigned int n_quadratures () const;
+      unsigned int size () const;
 
                                        /**
                                         * Returns a reference to the
@@ -72,7 +72,7 @@ namespace hp
                                         * collection.
                                         */
       const Quadrature<dim> &
-      get_quadrature (const unsigned int index) const;
+      operator[] (const unsigned int index) const;
 
                                        /**
                                         * Adds a new quadrature rule to the
@@ -139,7 +139,7 @@ namespace hp
   template <int dim>
   inline
   unsigned int
-  QCollection<dim>::n_quadratures () const 
+  QCollection<dim>::size () const 
   {
     return quadratures.size();
   }
index 8ac956e8ebfc7a10b7371cda106f86a5494db000..41eb74f27e71246ac2126058cf294d0e06f1bc7d 100644 (file)
@@ -130,8 +130,7 @@ namespace hp
   {
     return new ::FEValues<dim> (
       this->mapping_collection.get_mapping (active_fe_index), fe,
-      this->q_collection.get_quadrature (active_fe_index),
-      this->update_flags);
+      this->q_collection[active_fe_index], this->update_flags);
   }
 
 
@@ -188,8 +187,7 @@ namespace hp
   {
     return new ::FEFaceValues<dim> (
       this->mapping_collection.get_mapping (active_fe_index), fe,
-      this->q_collection.get_quadrature (active_fe_index),
-      this->update_flags);
+      this->q_collection[active_fe_index], this->update_flags);
   }
 
 
@@ -248,8 +246,7 @@ namespace hp
   {
     return new ::FESubfaceValues<dim> (
       this->mapping_collection.get_mapping (active_fe_index), fe,
-      this->q_collection.get_quadrature (active_fe_index),
-      this->update_flags);
+      this->q_collection[active_fe_index], this->update_flags);
   }
 }
 
index fdce94252d9f5385c9f4e6c87d7aa02c65530c8d..409bbe24715070c3008df02ad3bc749f7ebe1051 100644 (file)
@@ -41,7 +41,7 @@ namespace hp
   template <int dim>
   inline
   const Quadrature<dim> &
-  QCollection<dim>::get_quadrature (const unsigned int index) const
+  QCollection<dim>::operator[] (const unsigned int index) const
   {
                                      // if we have only a single quadrature
                                      // that was given during construction,

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.