This file is indexed.

/usr/include/Eris-1.3/Eris/TimedEventService.h is in liberis-1.3-dev 1.3.21-0.1.

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
#ifndef ERIS_TIMED_EVENT_SERVICE_H
#define ERIS_TIMED_EVENT_SERVICE_H

#include <wfmath/timestamp.h>

#include <sigc++/signal.h>

#include <set>

namespace Eris
{

/**
@brief Abstract interface for things which occur after a period of time.
*/
class TimedEvent
{
public:
    virtual ~TimedEvent()
    {
    }
    
    /**
    @brief Implement the expiry behaviour of this object.
    The TimedEvent is automatically removed from the service before this
    method is called, so deleting the object, or re-registering it are
    permitted.
    */
    virtual void expired() = 0;
    
    /**
    The time value when this event is due
    */
    virtual const WFMath::TimeStamp& due() const = 0;
};

class EventsByDueOrdering
{
public:
    bool operator()(const TimedEvent* a, const TimedEvent* b) const
    {
        return a->due() < b->due();
    }
};

class TimedEventService
{
public:

    static TimedEventService* instance();

    static void del();

    /**
    @brief Tick all the timed events registered with the service instance.
    @ret The period in milliseconds until the next event is due
    */
    unsigned long tick(bool idle = false);

    /**
    */
    void registerEvent(TimedEvent* te);

    /**
    */
    void unregisterEvent(TimedEvent* te);

    /**
    @brief Signal emitted when tick is idle
    */
    sigc::signal<void> Idle;
private:
    TimedEventService();
    
    static TimedEventService* static_instance;
    
    typedef std::set<TimedEvent*, EventsByDueOrdering> TimedEventsByDue;
    TimedEventsByDue m_events;
};

} // of namespace Eris

#endif // of ERIS_TIMED_EVENT_SERVICE_H