This file is indexed.

/usr/include/opengm/graphicalmodel/space/viewspace.hxx is in libopengm-dev 2.3.6-2.

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
84
85
86
87
88
89
90
91
92
#pragma once
#ifndef OPENGM_VIEW_SPACE_HXX
#define OPENGM_VIEW_SPACE_HXX

#include <vector>
#include <limits>

#include "opengm/opengm.hxx"
#include "opengm/graphicalmodel/space/space_base.hxx"

/// \cond HIDDEN_SYMBOLS

namespace opengm {

/// View Space 
///
/// \ingroup spaces
template<class GM>
class ViewSpace
: public SpaceBase<ViewSpace<GM>, typename GM::IndexType, typename GM::LabelType> {
public:
   typedef typename GM::IndexType IndexType;
   typedef typename GM::LabelType LabelType;
   typedef typename GM::SpaceType SrcSpaceType;

   ViewSpace();
   ViewSpace(const GM &);
   void assign(const GM &);
   IndexType addVariable(const LabelType);
   IndexType numberOfVariables() const;
   LabelType numberOfLabels(const IndexType) const;

private:
   SrcSpaceType const* space_;
};

template<class GM>
inline
ViewSpace<GM>::ViewSpace()
:  space_(NULL)
{}

template<class GM>
inline
ViewSpace<GM>::ViewSpace(
   const GM & gm
)
:  space_(&gm.space())
{}

template<class GM>
inline void
ViewSpace<GM>::assign(
   const GM & gm
)
{
   space_=& gm.space();
}

template<class GM>
inline typename  ViewSpace<GM>::IndexType
ViewSpace<GM>::addVariable(
   const LabelType numberOfLabels
)
{
   opengm::RuntimeError("cannot add Variable with a ViewSpace as a space object");
}

template<class GM>
inline typename ViewSpace<GM>::IndexType
ViewSpace<GM>::numberOfVariables() const
{
   OPENGM_ASSERT(space_!=NULL);
   return space_->numberOfVariables();
}

template<class GM>
inline typename ViewSpace<GM>::IndexType
ViewSpace<GM>::numberOfLabels
(
   const IndexType dimension
) const
{
   OPENGM_ASSERT(space_!=NULL);
   return space_->numberOfLabels(dimension);
}

} // namespace opengm

/// \endcond

#endif // #ifndef OPENGM_VIEW_SPACE_HXX