This file is indexed.

/usr/include/Wt/WJavaScriptObjectStorage is in libwt-dev 3.3.6+dfsg-1.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
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2015 Emweb bvba, Herent, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WJAVASCRIPT_OBJECT_STORE_H_
#define WJAVASCRIPT_OBJECT_STORE_H_

#include "Wt/WJavaScriptExposableObject"
#include "Wt/WJavaScriptHandle"

#include <string>
#include <boost/lexical_cast.hpp>

namespace Wt {

class WStringStream;

class WJavaScriptObjectStorage {
public:
  WJavaScriptObjectStorage(const std::string &jsRef);

  ~WJavaScriptObjectStorage();

  // NOTE: transfers ownership
  // T extends WJavaScriptExposableObject
  template<typename T>
  WJavaScriptHandle<T> addObject(T *o)
  {
    int index = doAddObject(o);
    return WJavaScriptHandle<T>(index, o);
  }

  void updateJs(WStringStream &js);

  std::size_t size() const;

  void assignFromJSON(const std::string &json);

private:
  template<typename T>
  friend class WJavaScriptHandle;

  int doAddObject(WJavaScriptExposableObject *o);

  std::vector<WJavaScriptExposableObject *> jsValues;
  std::vector<bool> dirty;
  std::string jsRef;
};

}

#endif // WJAVASCRIPT_OBJECT_STORE_H_