This file is indexed.

/usr/include/Nux-4.0/Nux/NuxTimerTickSource.h is in libnux-4.0-dev 4.0.8+16.04.20160209-0ubuntu2.

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

#include "NuxCore/Animation.h"
#include "NuxCore/AnimationController.h"
#include "Nux/Nux.h"
#include "Nux/TimerProc.h"

namespace nux
{

// Everything inline, but should be extracted.
class NuxTimerTickSource: public animation::TickSource
{
public:
  NuxTimerTickSource()
    : foo(0)
    {
      timer_.tick.connect(sigc::mem_fun(this, &NuxTimerTickSource::Tick));
      timer_.expired.connect(sigc::mem_fun(this, &NuxTimerTickSource::TimerExpired));
      unsigned int period = 16; // ms
      int duration = -1; // run forever
      timer_handle_ = nux::GetTimer().AddDurationTimer(period, duration, &timer_, NULL);
    }

  ~NuxTimerTickSource()
    {
      if (timer_handle_.Activated())
        nux::GetTimer().RemoveTimerHandler(timer_handle_);
    }

private:
  void Tick(void*)
    {
      tick.emit(g_get_monotonic_time());
      if (++foo % 60 == 0)
      {
        // LOG_WARN(logger) << "tick...";
      }
    }
  void TimerExpired(void*)
    {
      //LOG_WARN(logger) << "Timer expired.";
    }

private:
  int foo;
  TimerFunctor timer_;
  TimerHandle timer_handle_;
};

}

#endif // NUX_TIMER_TICK_SOURCE_H