This file is indexed.

/usr/include/wvstreams/unifiltergen.h is in libwvstreams-dev 4.6.1-12~deb9u1.

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
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 2002 Net Integration Technologies, Inc.
 * 
 * A UniConfGen framework to simplify writing filtering generators.
 */
#ifndef __UNIFILTERGEN_H
#define __UNIFILTERGEN_H

#include "uniconfgen.h"

/**
 * A UniConfGen that delegates all requests to an inner generator.  If you
 * derive from this, you can selectively override particular behaviours
 * of a sub-generator.
 */
class UniFilterGen : public UniConfGen
{
    IUniConfGen *xinner;

protected:
    UniFilterGen(IUniConfGen *inner);
    virtual ~UniFilterGen();

    /**
     * Rebinds the inner generator and prepares its callback.
     * The previous generator is NOT destroyed.
     */
    void setinner(IUniConfGen *inner);

public:
    /** Returns the inner generator. */
    IUniConfGen *inner() const
        { return xinner; }
    
    /**
     * A mapping function for filters that remap one keyspace onto another.
     * 
     * The default implementation of the various functions (get, set,
     * exists, etc) run their keys through this function before forwarding
     * the requests on to the inner generator.
     * 
     * The default implementation of this function doesn't change the key.
     *
     * Returns true if the key can be mapped, else false.
     */
    virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key);

    /**
     * A mapping function for filters that unmap a keyspace.
     *
     * The default implementation of this function doesn't change the key.
     * 
     * Returns true if the key can be reverse-mapped, else false.
     */
    virtual bool reversekeymap(const UniConfKey &mapped_key, UniConfKey &unmapped_key);
    

    /***** Overridden methods *****/

    virtual void commit();
    virtual bool refresh();
    virtual void flush_buffers();
    virtual void prefetch(const UniConfKey &key, bool recursive);
    virtual WvString get(const UniConfKey &key);
    virtual void set(const UniConfKey &key, WvStringParm value);
    virtual void setv(const UniConfPairList &pairs);
    virtual bool exists(const UniConfKey &key);
    virtual bool haschildren(const UniConfKey &key);
    virtual bool isok();
    virtual Iter *iterator(const UniConfKey &key);
    virtual Iter *recursiveiterator(const UniConfKey &key);

protected:
    /**
     * Called by inner generator when a key changes.
     * The default implementation calls delta(key).
     */
    virtual void gencallback(const UniConfKey &key, WvStringParm value);
};

#endif //__UNIFILTERGEN_H