This file is indexed.

/usr/include/wvstreams/wvcallbacklist.h is in libwvstreams-dev 4.6.1-11.

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
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 */
#ifndef __WVCALLBACKLIST_H
#define __WVCALLBACKLIST_H

#include <assert.h>
#include <map>


template<class InnerCallback>
class WvCallbackList
{
private:
    std::map<void*, InnerCallback> list;

    /* The idea of copying this gives me a headache. */
    WvCallbackList(const WvCallbackList &);
    WvCallbackList& operator=(const WvCallbackList&);

public:
    WvCallbackList()
    {
    }
    void add(const InnerCallback &cb, void *cookie)
    {
	assert(list.find(cookie) == list.end());
	list.insert(std::make_pair(cookie, cb));
    }
    void del(void *cookie)
    {
	typename std::map<void*, InnerCallback>::iterator it =
	    list.find(cookie);
	assert(it != list.end());
	list.erase(it);
    }
    bool isempty() const
    {
	return list.empty();
    }
    void operator()() const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second();
    }
    template<typename P1>
    void operator()(P1 &p1) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1);
    }
    template<typename P1,
	     typename P2>
    void operator()(P1 &p1, P2 &p2) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2);
    }
    template<typename P1,
	     typename P2,
	     typename P3>
    void operator()(P1 &p1, P2 &p2, P3 &p3) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2, p3);
    }
    template<typename P1,
	     typename P2,
	     typename P3,
	     typename P4>
    void operator()(P1 &p1, P2 &p2, P3 &p3, P4 &p4) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2, p3, p4);
    }
    template<typename P1,
	     typename P2,
	     typename P3,
	     typename P4,
	     typename P5>
    void operator()(P1 &p1, P2 &p2, P3 &p3, P4 &p4, P5 &p5) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2, p3, p4, p5);
    }
    template<typename P1,
	     typename P2,
	     typename P3,
	     typename P4,
	     typename P5,
	     typename P6>
    void operator()(P1 &p1, P2 &p2, P3 &p3, P4 &p4, P5 &p5, P6 &p6) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2, p3, p4, p5, p6);
    }
    template<typename P1,
	     typename P2,
	     typename P3,
	     typename P4,
	     typename P5,
	     typename P6,
	     typename P7>
    void operator()(P1 &p1, P2 &p2, P3 &p3, P4 &p4, P5 &p5, P6 &p6,
		    P7 &p7) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2, p3, p4, p5, p6, p7);
    }
    template<typename P1,
	     typename P2,
	     typename P3,
	     typename P4,
	     typename P5,
	     typename P6,
	     typename P7,
	     typename P8>
    void operator()(P1 &p1, P2 &p2, P3 &p3, P4 &p4, P5 &p5, P6 &p6, P7 &p7,
		    P8 &p8) const
    {
	typename std::map<void*, InnerCallback>::const_iterator it;

	for (it = list.begin(); it != list.end(); ++it)
	    it->second(p1, p2, p3, p4, p5, p6, p7, p8);
    }
};


#endif /* __WVCALLBACKLIST_H */