This file is indexed.

/usr/include/dawgdic/ranked-guide-link.h is in libdawgdic-dev 0.4.5-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
#ifndef DAWGDIC_RANKED_GUIDE_LINK_H
#define DAWGDIC_RANKED_GUIDE_LINK_H

namespace dawgdic {

class RankedGuideLink {
 public:
  RankedGuideLink() : label_('\0'), value_(-1) {}
  RankedGuideLink(UCharType label, ValueType value)
    : label_(label), value_(value) {}

  void set_label(UCharType label) {
    label_ = label;
  }
  void set_value(ValueType value) {
    value_ = value;
  }

  UCharType label() const {
    return label_;
  }
  ValueType value() const {
    return value_;
  }

  // For sortings links in descending value order.
  template <typename VALUE_COMPARER_TYPE>
  class Comparer {
   public:
    typedef VALUE_COMPARER_TYPE ValueComparerType;

    explicit Comparer(ValueComparerType value_comparer)
      : value_comparer_(value_comparer) {}

    bool operator()(const RankedGuideLink &lhs,
                    const RankedGuideLink &rhs) const {
      if (lhs.value() != rhs.value()) {
        return value_comparer_(rhs.value(), lhs.value());
      }
      return lhs.label() < rhs.label();
    }

   private:
    ValueComparerType value_comparer_;
  };

  template <typename VALUE_COMPARER_TYPE>
  static Comparer<VALUE_COMPARER_TYPE> MakeComparer(
      VALUE_COMPARER_TYPE value_comparer) {
    return Comparer<VALUE_COMPARER_TYPE>(value_comparer);
  }

 private:
  UCharType label_;
  ValueType value_;

  // Copyable.
};

}  // namespace dawgdic

#endif  // DAWGDIC_RANKED_GUIDE_LINK_H