]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add typedef to iterators to get access to the Accessor type.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 9 Jun 1998 18:30:33 +0000 (18:30 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 9 Jun 1998 18:30:33 +0000 (18:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@392 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_iterator.h

index ab6bf2bee8baa6b4f05beb3c905351b917011eb5..eb031aa22507a6f7677faf7707526fbeef2935f5 100644 (file)
@@ -237,6 +237,15 @@ template <int dim> class Triangulation;
 template <int dim, typename Accessor>
 class TriaRawIterator : public bidirectional_iterator<Accessor,int>{
   public:
+                                    /**
+                                     * Declare the type of the Accessor for
+                                     * use in the outside world. This way other
+                                     * functions can use the Accessor's type
+                                     * without knowledge of how the exact
+                                     * implementation actually is.
+                                     */
+    typedef Accessor AccessorType;
+    
                                     /**
                                      *  Empty constructor. Such an object
                                      *  is not usable!

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.