This file is indexed.

/usr/include/dune/grid/common/entityseed.hh is in libdune-grid-dev 2.5.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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_GRID_ENTITY_SEED_HH
#define DUNE_GRID_ENTITY_SEED_HH

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

/** \file
 *  \brief Interface class EntitySeed
 */

namespace Dune {

  /** \brief Store a reference to an entity with a minimal memory footprint
   *
   * The EntitySeed provides a light-weight way to store an entity.  It is supposed
   * to be implemented as memory-efficiently as possible.  To get back the actual
   * entity, you need the corresponding grid.
   * On the grid, there is the method entity(const EntitySeed&), which
   * gives you an Entity in exchange for an EntitySeed.
   */
  template<class GridImp, class EntitySeedImp>
  class EntitySeed
  {
  public:

    //! codimension of underlying entity
    enum { codimension = EntitySeedImp::codimension };

    //! Export the implementation type
    typedef EntitySeedImp Implementation;

    /** \brief Construct an empty (i.e. isValid() == false) seed */
    EntitySeed()
    {}

    /** \brief Construct from implementation class */
    EntitySeed(const EntitySeedImp& implementation)
      : implementation_(implementation)
    {}

    /** \brief check whether it is safe to create an Entity from this Seed */
    bool isValid() const
    {
      return implementation_.isValid();
    }

#if DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
  public:
#else
  protected:
    // give the GridDefaultImplementation class access to the impl
    friend class GridDefaultImplementation<
        GridImp::dimension, GridImp::dimensionworld,
        typename GridImp::ctype,
        typename GridImp::GridFamily> ;
#endif

    /** \brief Access to the actual implementation */
    Implementation& impl()
    {
      return implementation_;
    }
    /** \brief const Access to the actual implementation */
    const Implementation& impl() const
    {
      return implementation_;
    }

  private:
    /** \brief The actual implementation class */
    EntitySeedImp implementation_;
  };

} // end namespace Dune

#endif