This file is indexed.

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

#ifndef List_INCLUDED
#define List_INCLUDED 1

#include "IList.h"
#include "Link.h"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

template<class T>
class ListItem : public Link {
public:
  ListItem(const T &v) : value(v) { }
  T value;
};

template<class T> class ListIter;

template<class T>
class List {
public:
  List() { }
  void append(const T &item) { list_.append(new ListItem<T>(item)); }
  void insert(const T &item) { list_.insert(new ListItem<T>(item)); }
  const T &head() const { return list_.head()->value; }
  void remove(const T &);
  T get();
  int empty() const { return list_.empty(); }
  friend class ListIter<T>;
private:
  List(const List<T> &);	// undefined
  void operator=(const List<T> &); // undefined

  IList<ListItem<T> > list_;
};

#ifdef SP_NAMESPACE
}
#endif

#endif /* not List_INCLUDED */

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