This file is indexed.

/usr/include/OpenSP/Owner.h is in libosp-dev 1.5.2-10ubuntu3.

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
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.

#ifndef Owner_INCLUDED
#define Owner_INCLUDED 1

// A pointer that owns the object pointed to.
// T must be of class type.
// This is coded so that T need not yet have been defined.

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

template<class T>
class Owner {
public:
  Owner() : p_(0) { }
  Owner(T *p) : p_(p) { }
  virtual ~Owner();
  void operator=(T *p) {
    if (p_) del();
    p_ = p;
  }
  operator int() const { return p_ != 0; }
  T *pointer() const { return p_; }
  T *operator->() const { return p_; }
  T &operator*() const { return *p_; }
  void swap(Owner<T> &x) {
    T *tem = p_;
    p_ = x.p_;
    x.p_ = tem;
  }
  T *extract() {
    T *tem = p_;
    p_ = 0;
    return tem;
  }
  void clear() {
    if (p_) {
      del();
      p_ = 0;
    }
  }
private:
  Owner(const Owner<T> &);	// undefined
  void operator=(const Owner<T> &o); // undefined
  void del();
  T *p_;
};

#ifdef SP_NAMESPACE
}
#endif

#endif /* not Owner_INCLUDED */

#ifdef SP_DEFINE_TEMPLATES
#include "Owner.cxx"
#endif