This file is indexed.

/usr/include/dune/grid/common/leafiterator.hh is in libdune-grid-dev 2.3.1-1.

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
64
65
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_GRID_LEAFITERATOR_HH
#define DUNE_GRID_LEAFITERATOR_HH

#warning This file is deprecated, and will be removed in the release after dune-2.3

#include <cstddef>
#include <iterator>

#include <dune/grid/common/entityiterator.hh>
#include <dune/grid/common/gridenums.hh>

namespace Dune
{

  /**********************************************************************/
  /**
     @brief Enables iteration over all leaf entities
     of a codimension zero of a grid.
     See also the documentation of Dune::EntityPointer.

     \note The LeafIterator interface is deprecated. Use the EntityIterator
           interface instead.

     @ingroup GIEntityPointer
   */
  template<int codim, PartitionIteratorType pitype, class GridImp,
      template<int,PartitionIteratorType,class> class LeafIteratorImp>
  class LeafIterator
    : public EntityIterator< codim, GridImp, LeafIteratorImp< codim, pitype, GridImp > >
  {
    typedef EntityIterator< codim, GridImp, LeafIteratorImp< codim, pitype, GridImp > > Base;

  public:
    /** @brief Preincrement operator. */
    LeafIterator& operator++()
    {
      ++static_cast< Base & >( *this );
      this->realIterator.increment();
      return *this;
    }

  };

}

namespace std {

  template
  < int codim, Dune::PartitionIteratorType pitype, class GridImp,
      template<int,Dune::PartitionIteratorType,class> class LeafIteratorImp>
  struct iterator_traits<Dune::LeafIterator<codim, pitype, GridImp,
          LeafIteratorImp> > {
    typedef ptrdiff_t difference_type;
    typedef const typename Dune::LeafIterator<codim, pitype, GridImp,
        LeafIteratorImp>::Entity value_type;
    typedef value_type* pointer;
    typedef value_type& reference;
    typedef forward_iterator_tag iterator_category;
  };

} // namespace std

#endif // DUNE_GRID_LEAFITERATOR_HH