This file is indexed.

/usr/include/dune/grid/albertagrid/entityseed.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef DUNE_ALBERTA_ENTITYSEED_HH
#define DUNE_ALBERTA_ENTITYSEED_HH

#include <dune/grid/albertagrid/elementinfo.hh>
#include <dune/grid/albertagrid/meshpointer.hh>

namespace Dune
{

  // Internal Forward Declarations
  // -----------------------------

  template< int codim, class Grid >
  class AlbertaGridEntitySeed;



  // External Forward Declarations
  // -----------------------------

  template< int dim, int dimworld >
  class AlbertaGrid;



#if HAVE_ALBERTA

  // AlbertaGridEntitySeed (for higher codimension)
  // ----------------------------------------------

  template< int codim, int dim, int dimworld >
  class AlbertaGridEntitySeed< codim, const AlbertaGrid< dim, dimworld > >
  {
  public:
    typedef AlbertaGrid< dim, dimworld > Grid;

    static const int codimension = codim;
    static const int dimension = dim;
    static const int mydimension = dimension - codimension;
    static const int dimensionworld = dimworld;

    typedef Alberta::MeshPointer< dimension > MeshPointer;
    typedef Alberta::ElementInfo< dimension > ElementInfo;
    typedef typename ElementInfo::Seed Seed;

    typedef typename Grid::template Codim< codimension >::Entity Entity;

    AlbertaGridEntitySeed ( const ElementInfo &elementInfo, int subEntity )
    : seed_( elementInfo.seed() ),
      subEntity_( subEntity )
    {}

    ElementInfo elementInfo ( const MeshPointer &mesh ) const { return ElementInfo( mesh, seed_ ); }
    int subEntity () const { return subEntity_; }

  private:
    Seed seed_;
    int subEntity_;
  };



  // AlbertaGridEntitySeed (for codimension 0)
  // -----------------------------------------

  template< int dim, int dimworld >
  class AlbertaGridEntitySeed< 0, const AlbertaGrid< dim, dimworld > >
  {
  public:
    typedef AlbertaGrid< dim, dimworld > Grid;

    static const int codimension = 0;
    static const int dimension = dim;
    static const int mydimension = dimension - codimension;
    static const int dimensionworld = dimworld;

    typedef Alberta::MeshPointer< dimension > MeshPointer;
    typedef Alberta::ElementInfo< dimension > ElementInfo;
    typedef typename ElementInfo::Seed Seed;

    typedef typename Grid::template Codim< codimension >::Entity Entity;

    explicit AlbertaGridEntitySeed ( const ElementInfo &elementInfo )
    : seed_( elementInfo.seed() )
    {}

    ElementInfo elementInfo ( const MeshPointer &mesh ) const { return ElementInfo( mesh, seed_ ); }
    int subEntity () const { return 0; }

  private:
    Seed seed_;
  };

#endif // #if HAVE_ALBERTA

} // end namespace Dune

#endif // #ifndef DUNE_ALBERTA_ENTITYSEED_HH