This file is indexed.

/usr/include/dune/grid/common/capabilities.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
 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#ifndef DUNE_CAPABILITIES_HH
#define DUNE_CAPABILITIES_HH

/** \file
    \brief A set of traits classes to store static information about grid implementation
*/

namespace Dune
{

/** \brief Contains all capabilities classes */
namespace Capabilities
{

/** \brief Specialize with 'true' for if the codimension 0 entity 
    of the grid has only one possible geometry type. In this case the 
    topologyId of this geometry type has also to be specified. 
    (default=false, topologyId=undefined)
    \ingroup GICapabilities
*/
template<class Grid>
struct hasSingleGeometryType
{
  static const bool v = false;
  // this value will be initialized with something big 
  // since it is invalid 
  static const unsigned int topologyId = ~0u;
};

/** \brief Specialize with 'true' if the grid is a Cartesian grid. 
    Cartesian grids satisfy the following properties:
      - all geometries are affine
      - The unit outer normal for an intersection with indexInInside = face 
        can be computed by the following code:
      \code
         FieldVector< ctype, dim > n( 0 );
         n[ face / 2 ] = ctype( 2*(face % 2) - 1 );
      \endcode
    (default=false). 
    \ingroup GICapabilities
*/
template<class Grid>
struct isCartesian
{
  // default value is false 
  static const bool v = false;
};

/** \brief Specialize with 'true' for all codims that a grid implements entities for. (default=false)
    \ingroup GICapabilities
*/
template<class Grid, int codim>
struct hasEntity
{
  static const bool v = false;
};

/** \brief Specialize with 'true' if implementation supports parallelism. (default=false)
    \ingroup GICapabilities
*/
template<class Grid>
struct isParallel
{
  static const bool v = false;
};

/** \brief specialize with 'true' for all codims that a grid can communicate data on (default=false)
 *
 *  \note Being able to communicate data on a codimension implies that the
 *        grid provides entities for that codimension.
 *
 *  \ingroup GICapabilities
 */
template< class Grid, int codim >
struct canCommunicate
{
  static const bool v = false;
};

/** \brief Specialize with 'true' if implementation guarantees conforming level grids. (default=false)
    \ingroup GICapabilities
*/
template<class Grid>
struct isLevelwiseConforming
{
  static const bool v = false;
};

/** \brief Specialize with 'true' if implementation guarantees a conforming leaf grid. (default=false)
    \ingroup GICapabilities
*/
template<class Grid>
struct isLeafwiseConforming
{
  static const bool v = false;
};

/** \brief Specialize with 'true' if implementation provides backup and restore facilities. (default=false)
    \ingroup GICapabilities
*/
template<class Grid>
struct hasBackupRestoreFacilities
{
  static const bool v = false;
};

/** \brief Specialize with 'true' if the grid implementation is thread safe. (default=false)

    This capability is 'true' if the grid is <b>always</b> thread safe.
    This means especially that all grid modification, like load balancing and
    grid adaption are also thread safe.
    
    \sa viewThreadSafe
        
    \ingroup GICapabilities
*/
template <class Grid>
struct threadSafe {
    static const bool v = false;
};
  
/** \brief Specialize with 'true' if the grid implementation is thread safe, while it is not modified. (default=false)

    This capability is 'true' if the grid thread safe, <b>at least</b> while it is not modified.
    This means especially that all grid modification, like load balancing and
    grid adaption are not necessarily thread safe.
    
    \sa threadSafe
        
    \ingroup GICapabilities
*/
template <class Grid>
struct viewThreadSafe {
    static const bool v = false;
};
  
/*
  forward
  Capabilities::Something<const Grid>
  to
  Capabilities::Something<Grid>
*/

template<class Grid>
struct hasSingleGeometryType< const Grid >
{
  static const bool v = Dune::Capabilities::hasSingleGeometryType<Grid>::v;
  static const unsigned int topologyId =
    Dune::Capabilities::hasSingleGeometryType<Grid>::topologyId;
};

template<class Grid>
struct isCartesian< const Grid >
{
  static const bool v = Dune::Capabilities::isCartesian<Grid>::v;
};

template<class Grid, int codim>
struct hasEntity<const Grid, codim>
{
  static const bool v = Dune::Capabilities::hasEntity<Grid,codim>::v;
};

template<class Grid>
struct isParallel<const Grid>
{
  static const bool v = Dune::Capabilities::isParallel<Grid>::v;
};

template< class Grid, int codim >
struct canCommunicate< const Grid, codim >
{
  static const bool v = Dune::Capabilities::canCommunicate< Grid, codim >::v;
};

template<class Grid>
struct isLevelwiseConforming<const Grid>
{
  static const bool v = Dune::Capabilities::isLevelwiseConforming<Grid>::v;
};

template<class Grid>
struct isLeafwiseConforming<const Grid>
{
  static const bool v = Dune::Capabilities::isLeafwiseConforming<Grid>::v;
};

template<class Grid>
struct hasBackupRestoreFacilities<const Grid> 
{
  static const bool v = Dune::Capabilities::hasBackupRestoreFacilities<Grid>::v;
};

template <class Grid>
struct threadSafe<const Grid> {
  static const bool v = Dune::Capabilities::threadSafe<Grid>::v;
};
  
template <class Grid>
struct viewThreadSafe<const Grid> {
  static const bool v = Dune::Capabilities::viewThreadSafe<Grid>::v;
};
  
}

}

#endif // DUNE_CAPABILITIES_HH