This file is indexed.

/usr/include/dune/grid/alugrid/common/persistentcontainer.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
 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
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_ALU_PERSISTENTCONTAINER_HH
#define DUNE_ALU_PERSISTENTCONTAINER_HH

#include <dune/grid/utility/persistentcontainer.hh>

#if HAVE_ALUGRID
#include <dune/grid/alugrid.hh>
#include <dune/grid/utility/persistentcontainervector.hh>

namespace Dune
{

  // ALUGridPersistentContainer
  // --------------------------

  template< class G, class T >
  class ALUGridPersistentContainer
    : public PersistentContainerVector< G, typename G::HierarchicIndexSet, std::vector< T > >
  {
    typedef PersistentContainerVector< G, typename G::HierarchicIndexSet, std::vector< T > > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    ALUGridPersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid.hierarchicIndexSet(), codim, value )
    {}
  };


  // PersistentContainer for ALUGrid
  // -------------------------------

  template< int dim, int dimworld, class T >
  class PersistentContainer< ALUConformGrid< dim, dimworld >, T >
    : public ALUGridPersistentContainer< ALUConformGrid< dim, dimworld >, T >
  {
    typedef ALUGridPersistentContainer< ALUConformGrid< dim, dimworld >, T > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid, codim, value )
    {}
  };

  template< int dim, int dimworld, class T >
  class PersistentContainer< ALUCubeGrid< dim, dimworld >, T >
    : public ALUGridPersistentContainer< ALUCubeGrid< dim, dimworld >, T >
  {
    typedef ALUGridPersistentContainer< ALUCubeGrid< dim, dimworld >, T > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid, codim, value )
    {}
  };

  template< int dim, int dimworld, class T >
  class PersistentContainer< ALUSimplexGrid< dim, dimworld >, T >
    : public ALUGridPersistentContainer< ALUSimplexGrid< dim, dimworld >, T >
  {
    typedef ALUGridPersistentContainer< ALUSimplexGrid< dim, dimworld >, T > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid, codim, value )
    {}
  };

  template< int dim, int dimworld, ALUGridElementType eltype, ALUGridRefinementType refinementtype, class Comm, class T >
  class PersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T >
    : public ALUGridPersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T >
  {
    typedef ALUGridPersistentContainer< ALUGrid< dim, dimworld, eltype, refinementtype, Comm >, T > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid, codim, value )
    {}
  };

  template< int dim, int dimworld, ALU2DSPACE ElementType elType, class T >
  class PersistentContainer< ALU2dGrid< dim, dimworld, elType >, T >
    : public ALUGridPersistentContainer< ALU2dGrid< dim, dimworld, elType >, T >
  {
    typedef ALUGridPersistentContainer< ALU2dGrid< dim, dimworld, elType >, T > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid, codim, value )
    {}
  };

  template< ALU3dGridElementType elType, class Comm, class T >
  class PersistentContainer< ALU3dGrid< elType, Comm >, T >
    : public ALUGridPersistentContainer< ALU3dGrid< elType, Comm >, T >
  {
    typedef ALUGridPersistentContainer< ALU3dGrid< elType, Comm >, T > Base;

  public:
    typedef typename Base::Grid Grid;
    typedef typename Base::Value Value;

    PersistentContainer ( const Grid &grid, int codim, const Value &value = Value() )
      : Base( grid, codim, value )
    {}
  };

} // namespace Dune

#endif // #if HAVE_ALUGRID

#endif // #ifndef DUNE_ALU_PERSISTENTCONTAINER_HH