]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace MappingCollection::get_mapping() and n_mappings() by operator[] and size()
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 10 Feb 2006 12:52:40 +0000 (12:52 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 10 Feb 2006 12:52:40 +0000 (12:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@12294 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e53b1b4e65089b71a5d61e45ce69f1946ad45683..8495ac566c8e9e3a0b6d469e71b0933a7f1cd1fe 100644 (file)
@@ -68,7 +68,7 @@ namespace hp
                                         * Returns the number of mapping
                                         * objects stored in this container.
                                         */
-      unsigned int n_mappings () const;
+      unsigned int size () const;
 
                                        /**
                                         * Returns the mapping object which
@@ -81,7 +81,7 @@ namespace hp
                                         * collection.
                                         */
       const Mapping<dim> &
-      get_mapping (const unsigned int index) const;
+      operator[] (const unsigned int index) const;
     
                                        /**
                                         * Determine an estimate for the
@@ -132,7 +132,7 @@ namespace hp
   template <int dim>
   inline
   unsigned int
-  MappingCollection<dim>::n_mappings () const 
+  MappingCollection<dim>::size () const 
   {
     return mappings.size();
   }
index 41eb74f27e71246ac2126058cf294d0e06f1bc7d..57fd2d934a1cb738908fb9e2b468ad201ff744ed 100644 (file)
@@ -129,7 +129,7 @@ namespace hp
                                    const unsigned int active_fe_index) const
   {
     return new ::FEValues<dim> (
-      this->mapping_collection.get_mapping (active_fe_index), fe,
+      this->mapping_collection[active_fe_index], fe,
       this->q_collection[active_fe_index], this->update_flags);
   }
 
@@ -186,7 +186,7 @@ namespace hp
                                        const unsigned int active_fe_index) const
   {
     return new ::FEFaceValues<dim> (
-      this->mapping_collection.get_mapping (active_fe_index), fe,
+      this->mapping_collection[active_fe_index], fe,
       this->q_collection[active_fe_index], this->update_flags);
   }
 
@@ -245,7 +245,7 @@ namespace hp
                                           const unsigned int active_fe_index) const
   {
     return new ::FESubfaceValues<dim> (
-      this->mapping_collection.get_mapping (active_fe_index), fe,
+      this->mapping_collection[active_fe_index], fe,
       this->q_collection[active_fe_index], this->update_flags);
   }
 }
index 2d912c6992c12b7343fd210d683e21c3a05c2a84..3361a0ff3191f7990bbea5b6d98acbe80277c071 100644 (file)
@@ -37,7 +37,7 @@ namespace hp
   template <int dim>
   inline
   const Mapping<dim> &
-  MappingCollection<dim>::get_mapping (const unsigned int index) const
+  MappingCollection<dim>::operator[] (const unsigned int index) const
   {
     if (single_mapping)
       return *mappings[0];

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.