This file is indexed.

/usr/include/magics/IsoHelper.h is in libmagics++-dev 2.18.15-5.

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
/*! \file IsoHelper.h
    \brief Definition of the Template class IsoHelper.
    
    Magics Team - ECMWF 2010
    
    Started: Thu 11-Mar-2010
    
    Changes:
    
*/

#ifndef IsoHelper_H
#define IsoHelper_H

#include "magics.h"

#include "Thread.h"
#include "MutexCond.h"
#include "Polyline.h"
#include "IntervalMap.h"



namespace magics {



struct IsoData {
public:
    IsoData() { more_ = true; }
    deque<pair<double, pair<pair<double, double>, pair<double, double > > > > segments_;
    //deque<Shape*> shapes_;
    
    bool more_;
    MutexCond cond_;
};


class IsoHelper: public Thread {

public:
	
	
	IsoHelper(int, vector<Polyline* >&, IsoData& data);
	void run();	
	


protected:
     //! Method to print string about this class on to a stream of type ostream (virtual).
	void print(ostream&) const;
    
    
	int      n_;
	
	vector<Polyline* >& lines_;
    map<double, vector<Polyline*> > helpers_;
  
	
	
	double level_;
	IsoData& data_; 
		

	
	//void reduce(vector<Shape*>&); 
    void concatenate_back(vector<Polyline* >& lines, Polyline* poly);
    void concatenate_front(vector<Polyline* >& lines, Polyline* poly);

private:
    //! Copy constructor - No copy allowed
	IsoHelper(const IsoHelper&);
    //! Overloaded << operator to copy - No copy allowed
	IsoHelper& operator=(const IsoHelper&);

// -- Friends
    //! Overloaded << operator to call print().
	friend ostream& operator<<(ostream& s,const IsoHelper& p)
		{ p.print(s); return s; }

};




} // namespace magics
#endif