This file is indexed.

/usr/include/dune/grid/geometrygrid/idset.hh is in libdune-grid-dev 2.2.1-2.

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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef DUNE_GEOGRID_IDSET_HH
#define DUNE_GEOGRID_IDSET_HH

#include <dune/grid/common/indexidset.hh>

namespace Dune
{

  namespace GeoGrid
  {
  
    // IdSet
    // -----
    
    template< class Grid, class HostIdSet >
    class IdSet
    : public Dune::IdSet< Grid, IdSet< Grid, HostIdSet >, typename HostIdSet::IdType >
    {
      typedef IdSet< Grid, HostIdSet > This;
      typedef Dune::IdSet< Grid, This, typename HostIdSet::IdType > Base;

      typedef typename remove_const< Grid >::type::Traits Traits;
      
    public:
      typedef typename HostIdSet::IdType IdType;

      using Base::subId;

      IdSet ()
      : hostIdSet_( 0 )
      {}

      explicit IdSet ( const HostIdSet &hostIdSet )
      : hostIdSet_( &hostIdSet )
      {}

      IdSet ( const This &other )
      : hostIdSet_( other.hostIdSet_ )
      {}

      const This &operator= ( const This &other )
      {
        hostIdSet_ = other.hostIdSet_;
        return *this;
      }

      template< int codim >
      IdType id ( const typename Traits::template Codim< codim >::Entity &entity ) const
      {
        return Grid::getRealImplementation( entity ).id( hostIdSet() );
      }

      template< class Entity >
      IdType id ( const Entity &entity ) const
      {
        return id< Entity::codimension >( entity );
      }

      IdType subId ( const typename Traits::template Codim< 0 >::Entity &entity, int i, unsigned int codim ) const
      {
        return hostIdSet().subId( Grid::template getHostEntity< 0 >( entity ), i, codim );
      }

      operator bool () const { return bool( hostIdSet_ ); }

    private:
      const HostIdSet &hostIdSet () const
      {
        assert( *this );
        return *hostIdSet_;
      }

      const HostIdSet *hostIdSet_;
    };

  } // namespace GeoGrid

} // namespace Dune

#endif // #ifndef DUNE_GEOGRID_IDSET_HH