This file is indexed.

/usr/include/CLHEP/GenericFunctions/LegendreCoefficientSet.icc is in libclhep-dev 2.1.4.1+dfsg-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
#include <vector>
namespace Genfun {

  class LegendreCoefficientSet::Clockwork {
    
  public:
    
    std::vector<std::complex<double> >  data;
    
  };
  
  inline
  LegendreCoefficientSet::LegendreCoefficientSet(unsigned int LMAX):c(new Clockwork()){
    for (unsigned int l=0;l<=LMAX;l++) {
      c->data.push_back(0);
    }
  }
  
  inline
  LegendreCoefficientSet::~LegendreCoefficientSet(){
    delete c;
  }
  
  inline
  LegendreCoefficientSet::LegendreCoefficientSet(const LegendreCoefficientSet & right):
    c(new Clockwork(*right.c))
  {
  }
  
  inline
  unsigned int LegendreCoefficientSet::getLMax() const {
    return c->data.size()-1;
  }
  
  inline
  const std::complex<double> &LegendreCoefficientSet:: operator () (unsigned int l) const {
    return c->data[l];
  }
  
  inline
  std::complex<double> & LegendreCoefficientSet::operator () (unsigned int l) {
    return c->data[l];
  }
  
  inline
  std::ostream & operator << ( std::ostream & o, const LegendreCoefficientSet & c)
  {
    for (unsigned int l=0;l<=c.getLMax();l++) {
      o << l << " mag: " << c(l) << std::endl;
    }
    o << std::endl;
    return o;
  }

  inline
  LegendreCoefficientSet & LegendreCoefficientSet::operator= (const LegendreCoefficientSet & source ){
    if (this!=&source) {
      delete c;
      c = new Clockwork(*source.c);
    }
    return *this;
  }
}