This file is indexed.

/usr/include/simgear/nasal/cppbind/NasalObject.hxx is in libsimgear-dev 3.4.0-3.

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
///@file
//
// Copyright (C) 2014  Thomas Geymayer <tomgey@gmail.com>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Library General Public License for more details.
//
// You should have received a copy of the GNU Library General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA

#ifndef SG_NASAL_OBJECT_HXX_
#define SG_NASAL_OBJECT_HXX_

#include "NasalContext.hxx"
#include "NasalObjectHolder.hxx"
#include "Ghost.hxx"

#include <boost/preprocessor/iteration/iterate.hpp>
#include <boost/preprocessor/repetition/enum_trailing_binary_params.hpp>

namespace nasal
{
  /**
   * Object exposed to Nasal including a Nasal hash for data storage.
   */
  class Object:
    public virtual SGVirtualWeakReferenced
  {
    public:

      /**
       *
       * @param impl    Initial implementation hash (nasal part of
       *                implementation)
       */
      Object(naRef impl = naNil());

      void setImpl(naRef obj);
      naRef getImpl() const;

      bool valid() const;

      // Build dependency for CMake, gcc, etc.
#define SG_DONT_DO_ANYTHING
# include <simgear/nasal/cppbind/detail/NasalObject_callMethod_templates.hxx>
#undef SG_DONT_DO_ANYTHING

#define BOOST_PP_ITERATION_LIMITS (0, 9)
#define BOOST_PP_FILENAME_1 <simgear/nasal/cppbind/detail/NasalObject_callMethod_templates.hxx>
#include BOOST_PP_ITERATE()

      bool _set(naContext c, const std::string& key, naRef val);
      bool _get(naContext c, const std::string& key, naRef& out);

      static void setupGhost();

    protected:
      ObjectHolder<> _nasal_impl;

  };

  typedef SGSharedPtr<Object> ObjectRef;
  typedef SGWeakPtr<Object> ObjectWeakRef;
  typedef Ghost<ObjectRef> NasalObject;

} // namespace nasal

#endif /* SG_NASAL_OBJECT_HXX_ */