This file is indexed.

/usr/include/ThePEG/Config/TemplateTools.h is in libthepeg-dev 1.8.0-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
// -*- C++ -*-
//
// TemplateTools.h is a part of ThePEG - Toolkit for HEP Event Generation
// Copyright (C) 2006-2011 David Grellscheid, Leif Lonnblad
//
// ThePEG is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
#ifndef Template_Tools_H
#define Template_Tools_H

/**
 * @file TemplateTools.h 
 * Useful template machinery. Based on Alexandrescu, "Modern C++ Design".
 */

namespace ThePEG {

/// Conversion between integers and types.
template <int v>
struct Int2Type
{
  enum { value = v };
};

/// Dummy type for ambiguous function signatures.
struct DummyType {};

/// Result type calculations for binary operators.
template <typename T, typename U>
struct BinaryOpTraits;

/** @cond TRAITSPECIALIZATIONS */

template <>
struct BinaryOpTraits<double,double> {
  /** The type resulting from multiplication of the template types. */
  typedef double MulT;
  /** The type resulting from division of the first template type by
      the second. */
  typedef double DivT;
};

template <>
struct BinaryOpTraits<long double, long double> {
  /** The type resulting from multiplication of the template types. */
  typedef long double MulT;
  /** The type resulting from division of the first template type by
      the second. */
  typedef long double DivT;
};

template <>
struct BinaryOpTraits<int,int> {
  /** The type resulting from multiplication of the template types. */
  typedef int MulT;
  /** The type resulting from division of the first template type by
      the second. */
  typedef int DivT;
};

/** @endcond */

/// Selection mechanism for type-dependent implementations.
enum ImplSelector { Dimensioned, Standard };

/// Typedef for dimensioned types.
typedef Int2Type<Dimensioned> DimensionT;

/// Typedef for non-dimensioned types.
typedef Int2Type<Standard> StandardT;


/// Type traits for built-in types
template <typename T>
struct TypeTraits
{
  /// Boolean flag. Is true for physical quantities.
  enum { hasDimension = false };
  /// Implementation selector
  typedef StandardT DimType;
  /// Base unit
  static const double baseunit;
};

/// Built-in types have no dimension.
template<typename T>
const double TypeTraits<T>::baseunit = T(1);

}

#endif