This file is indexed.

/usr/include/opengm/python/opengmpython.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
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#ifndef OPENGM_PYTHON_EXPORT_TYPEDEFS_HXX
#define OPENGM_PYTHON_EXPORT_TYPEDEFS_HXX

#include <map>

#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/functions/potts.hxx>
#include <opengm/utilities/tribool.hxx>

#include "opengm/utilities/functors.hxx"
#include "opengm/functions/explicit_function.hxx"
#include "opengm/functions/absolute_difference.hxx"
#include "opengm/functions/potts.hxx"
#include "opengm/functions/pottsn.hxx"
#include "opengm/functions/pottsg.hxx"
#include "opengm/functions/squared_difference.hxx"
#include "opengm/functions/truncated_absolute_difference.hxx"
#include "opengm/functions/truncated_squared_difference.hxx"
#include "opengm/functions/sparsemarray.hxx"

#include <opengm/python/opengmpython.hxx>
#include <opengm/python/converter.hxx>
#include <opengm/python/numpyview.hxx>
#include <opengm/python/pythonfunction.hxx>


#include <algorithm>
#include <vector>
#include <cmath>




namespace opengm{
namespace python{


   template<class V,class I,class O,class F>
   struct GmGen{
      typedef opengm::DiscreteSpace<I,I> SpaceType;
      typedef opengm::GraphicalModel<V,O,F,SpaceType> type;
   };
   template<class V,class I>
   struct ETLGen{
      typedef opengm::ExplicitFunction<V ,I,I> type;
   };

   template<class V,class I>
   struct FTLGen{

      typedef V ValueType;
      typedef I IndexType;
      typedef I LabelType;
      typedef opengm::ExplicitFunction                      <ValueType,IndexType,LabelType> PyExplicitFunction;
      typedef opengm::PottsFunction                         <ValueType,IndexType,LabelType> PyPottsFunction;
      typedef opengm::PottsNFunction                        <ValueType,IndexType,LabelType> PyPottsNFunction;
      typedef opengm::PottsGFunction                        <ValueType,IndexType,LabelType> PyPottsGFunction;
      typedef opengm::TruncatedAbsoluteDifferenceFunction   <ValueType,IndexType,LabelType> PyTruncatedAbsoluteDifferenceFunction;
      typedef opengm::TruncatedSquaredDifferenceFunction    <ValueType,IndexType,LabelType> PyTruncatedSquaredDifferenceFunction;
      typedef opengm::SparseFunction                        <ValueType,IndexType,LabelType> PySparseFunction; 
      typedef PythonFunction                                <ValueType,IndexType,LabelType> PyPythonFunction; 

      typedef typename opengm::meta::TypeListGenerator<
         PyExplicitFunction,
         PyPottsFunction,
         PyPottsNFunction,
         PyPottsGFunction,
         PyTruncatedAbsoluteDifferenceFunction,
         PyTruncatedSquaredDifferenceFunction,
         PySparseFunction,
         PyPythonFunction
      >::type type;
   };



   typedef double GmValueType;
   typedef opengm::UInt64Type GmIndexType;
   typedef GmIndexType GmLabelType;



   // different function types
   typedef opengm::ExplicitFunction                      <GmValueType,GmIndexType,GmLabelType> GmExplicitFunction;
   typedef opengm::PottsFunction                         <GmValueType,GmIndexType,GmLabelType> GmPottsFunction;
   typedef opengm::PottsNFunction                        <GmValueType,GmIndexType,GmLabelType> GmPottsNFunction;
   typedef opengm::PottsGFunction                        <GmValueType,GmIndexType,GmLabelType> GmPottsGFunction;
   typedef opengm::AbsoluteDifferenceFunction            <GmValueType,GmIndexType,GmLabelType> GmAbsoluteDifferenceFunction;
   typedef opengm::TruncatedAbsoluteDifferenceFunction   <GmValueType,GmIndexType,GmLabelType> GmTruncatedAbsoluteDifferenceFunction;
   typedef opengm::SquaredDifferenceFunction             <GmValueType,GmIndexType,GmLabelType> GmSquaredDifferenceFunction;
   typedef opengm::TruncatedSquaredDifferenceFunction    <GmValueType,GmIndexType,GmLabelType> GmTruncatedSquaredDifferenceFunction;
   typedef opengm::SparseFunction                        <GmValueType,GmIndexType,GmLabelType> GmSparseFunction; 
   typedef opengm::python::PythonFunction                <GmValueType,GmIndexType,GmLabelType> GmPythonFunction; 

   typedef std::vector<GmIndexType> IndexVectorType;
   typedef std::vector<IndexVectorType> IndexVectorVectorType;

   typedef GmGen<
      GmValueType,
      GmIndexType,
      opengm::Adder ,
      FTLGen<GmValueType,GmIndexType>::type
   >::type   GmAdder;

   typedef GmAdder::FactorType FactorGmAdder;
   typedef FactorGmAdder GmAdderFactor;

   typedef GmGen<
      GmValueType,
      GmIndexType,
      opengm::Multiplier ,
      FTLGen<GmValueType,GmIndexType>::type
   >::type   GmMultiplier;

   typedef GmMultiplier::FactorType FactorGmMultiplier;

   typedef FactorGmMultiplier GmMultiplierFactor;

   typedef opengm::IndependentFactor<GmValueType,GmIndexType,GmIndexType> GmIndependentFactor;

   namespace pyenums{
      enum AStarHeuristic{
         DEFAULT_HEURISTIC=0,
         FAST_HEURISTIC=1,
         STANDARD_HEURISTIC=2
      };
      enum IcmMoveType{
         SINGLE_VARIABLE=0,
         FACTOR=1
      };
      enum GibbsVariableProposal{
         RANDOM=0,
         CYCLIC=1
      };

      enum TrwsEnergyType{
         VIEW=0, TABLES=1, TL1=2, TL2=3
      };
   }

}
}

#endif	/* OPENGM_PYTHON_EXPORT_TYPEDEFS_HXX */