This file is indexed.

/usr/include/dune/pdelab/function/localfunctionhelper.hh is in libdune-pdelab-dev 2.5.0~rc1-2build1.

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
//-*- tab-width: 4; c-basic-offset: 2; indent-tabs-mode: nil -*-
#ifndef DUNE_PDELAB_FUNCTION_LOCALFUNCTIONHELPER_HH
#define DUNE_PDELAB_FUNCTION_LOCALFUNCTIONHELPER_HH

#include <dune/pdelab/function/tags.hh>
#include <dune/typetree/visitor.hh>

namespace Dune {
namespace PDELab {

namespace Imp
{

  template<typename Entity>
  struct PowerCompositeBindVisitor
    : public TypeTree::TreeVisitor, public TypeTree::DynamicTraversal
  {
    PowerCompositeBindVisitor(const Entity & e) : e_(e) {}
    template<typename LeafNode, typename TreePath>
    void leaf(LeafNode& node, TreePath treePath) const
    {
      node.bind(e_);
    }
    const Entity & e_;
  };

  struct PowerCompositeUnbindVisitor
    : public TypeTree::TreeVisitor, public TypeTree::DynamicTraversal
  {
    template<typename LeafNode, typename TreePath>
    void leaf(LeafNode& node, TreePath treePath) const
    {
      node.unbind();
    }
  };

  template<typename F>
  class LocalFunctionLeafNodeWrapper
    : public TypeTree::LeafNode
    , public F
  {
  public:
    typedef DifferentiableFunctionLocalViewTag ImplementationTag;
    LocalFunctionLeafNodeWrapper(const F& f) :
      F(f)
    {}
  };

} // end namespace Imp
} // end namespace PDELab
} // end namespace Dune

#endif // DUNE_PDELAB_FUNCTION_LOCALFUNCTIONHELPER_HH