This file is indexed.

/usr/include/dune/grid-glue/adapter/intersectioniterator.hh is in libdune-grid-glue-dev 2.4.0-1build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/**
   @file

   @brief Implement iterators over GridGlue intersections
   @author Christian Engwer
 */

#ifndef DUNE_GRIDGLUE_ADAPTER_INTERSECTIONITERATOR_HH
#define DUNE_GRIDGLUE_ADAPTER_INTERSECTIONITERATOR_HH

#include <dune/grid-glue/gridglue.hh>

namespace Dune {
  namespace GridGlue {

    /** @todo documentation */
    template<typename P0, typename P1, int inside, int outside>
    class IntersectionIterator :
      public Dune::ForwardIteratorFacade< IntersectionIterator<P0,P1,inside,outside>,
          const Intersection<P0,P1,inside,outside> >
    {
    public:

      typedef ::Dune::GridGlue::GridGlue<P0, P1> GridGlue;
      typedef ::Dune::GridGlue::Intersection<P0,P1,inside,outside> Intersection;

      IntersectionIterator(const GridGlue * glue, unsigned int i)
        : glue_(glue),
          index_(i),
          intersection_(glue_, & glue_->intersections_[index_])
      {}

      const Intersection& dereference() const
      {
        assert(("never dereference the end iterator" &&
                index_ != glue_->index__sz));
        return intersection_;
      }

      void increment()
      {
        intersection_ = Intersection(glue_, & glue_->intersections_[++index_]);
      }

      bool equals(const IntersectionIterator& iter) const
      {
        return iter.index_ == index_;
      }

    private:

      const GridGlue*   glue_;
      unsigned int index_;

      Intersection intersection_;
    };

  } // end namespace GridGlue
} // end namespace Dune

#endif // DUNE_GRIDGLUE_ADAPTER_INTERSECTIONITERATOR_HH