This file is indexed.

/usr/include/relion-1.4/src/tabfuncs.h is in librelion-dev-common 1.4+dfsg-1build1.

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
145
146
147
148
149
150
151
152
153
154
/***************************************************************************
 *
 * Author: "Sjors H.W. Scheres"
 * MRC Laboratory of Molecular Biology
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * This complete copyright notice must be included in any revised version of the
 * source code. Additional authorship citations may be added, but existing
 * author citations must be preserved.
 ***************************************************************************/

#ifndef TABFUNCS_H_
#define TABFUNCS_H_

#include "src/multidim_array.h"
#include "src/funcs.h"

// Class to tabulate some functions
class TabFunction
{

protected:
	MultidimArray<DOUBLE> tabulatedValues;
	DOUBLE  sampling;
public:
	// Empty constructor
	TabFunction() {}

	// Destructor
    virtual ~TabFunction()
    {
    	tabulatedValues.clear();
    }

    /** Copy constructor
     *
     * The created TabFunction is a perfect copy of the input array but with a
     * different memory assignment.
     */
    TabFunction(const TabFunction& op)
    {
    	tabulatedValues.clear();
    	*this = op;
    }

	/** Assignment.
     *
     * You can build as complex assignment expressions as you like. Multiple
     * assignment is allowed.
     */
    TabFunction& operator=(const TabFunction& op)
    {
        if (&op != this)
        {
         	// Projector stuff (is this necessary in C++?)
        	tabulatedValues = op.tabulatedValues;
        	sampling = op.sampling;
        }
        return *this;
    }


};

class TabSine : public TabFunction
{
public:
	// Empty constructor
	TabSine() {}

	// Constructor (with parameters)
	void initialise(const int _nr_elem = 5000);

	//Pre-calculate table values
	void fillTable(const int _nr_elem = 5000);

	// Value access
	DOUBLE operator()(DOUBLE val) const;

};

class TabCosine : public TabFunction
{
public:
	// Empty constructor
	TabCosine() {}

	void initialise(const int _nr_elem = 5000);

	//Pre-calculate table values
	void fillTable(const int _nr_elem = 5000);

	// Value access
	DOUBLE operator()(DOUBLE val) const;

};

class TabBlob : public TabFunction
{

private:
	DOUBLE radius;
	DOUBLE alpha;
	int order;

public:
	// Empty constructor
	TabBlob() {}

	// Constructor (with parameters)
	void initialise(DOUBLE _radius, DOUBLE _alpha, int _order, const int _nr_elem = 10000);

	//Pre-calculate table values
	void fillTable(const int _nr_elem = 5000);

	// Value access
	DOUBLE operator()(DOUBLE val) const;

};

class TabFtBlob : public TabFunction
{

private:
	DOUBLE radius;
	DOUBLE alpha;
	int order;

public:
	// Empty constructor
	TabFtBlob() {}

	 // Constructor (with parameters)
	void initialise(DOUBLE _radius, DOUBLE _alpha, int _order, const int _nr_elem = 10000);

	//Pre-calculate table values
	void fillTable(const int _nr_elem = 5000);

	// Value access
	DOUBLE operator()(DOUBLE val) const;

};


#endif /* TABFUNCS_H_ */