This file is indexed.

/usr/include/BALL/QSAR/partialChargeProcessor.h is in libball1.4-dev 1.4.3~beta1-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
 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
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
//

#ifndef BALL_QSAR_PARTIALCHARGEPROCESSOR_H
#define BALL_QSAR_PARTIALCHARGEPROCESSOR_H

#include <BALL/KERNEL/PTE.h>
#include <BALL/DATATYPE/hashSet.h>

#include <vector>
#include <utility>

namespace BALL
{
	class AtomContainer;
	class Atom;

	/**	Generic .
			\\
	*/
	class BALL_EXPORT PartialChargeProcessor
    : public UnaryProcessor<AtomContainer>
	{
		public:

		BALL_CREATE(PartialChargeProcessor)

		/** @name Constructors and Destructors
		*/
		//@{
		/** Default constructor
		*/
		PartialChargeProcessor();
	
		/** Copy contructor
		*/
		PartialChargeProcessor(const PartialChargeProcessor& pc);

		/** Destructor
		*/
		virtual ~PartialChargeProcessor();
		//@}

		/** @name Assignment
		*/
		//@{
		/** Assignment operator
		*/
		PartialChargeProcessor& operator = (const PartialChargeProcessor& pc);
		//@}
		
		/** @name Accessors
		*/
		//@{
		/** Methods to calculate the PEOE charges of Gasteiger. This method
				can be called explicitely, not as processor.
		*/
  		void calculatePEOE(AtomContainer& ac);
	
		/** allows to set the data-folder without using BALL_DATA_PATH enviroment variable, which is useful for standalone applications */
		void setDataFolder(const char* folder);
		//@}

		/** @name Processor-realted methods
		*/
		//@{		
    virtual Processor::Result operator () (AtomContainer& ac);
		//@}

		private:

    /*_ @name Accessors
    */

		std::pair<std::vector<float>, std::vector<float> > readIonizationEnergies_();

		
		//@{
		/*_ Helper function to get the ionization energy for an element
		*/
		float getIonizationEnergy_(Element::AtomicNumber atomic_number, Size charge);


		void readElectronAffinities_(std::vector<float>& electron_affinities);

		/*_ Helper funtion to get the electron affinity of an element
		*/
		float getElectronAffinity_(Element::AtomicNumber atomic_number, Size charge);

		/*_ Helper function to get the PEOE a,b and c factor
		*/
		void getabcFactors_(Atom* atom, float& a, float& b, float& c);
		//@}		

		HashSet<Element::AtomicNumber> warned_elements_;
		
		String data_folder_;
	};
} // namespace BALL

#endif // BALL_QSAR_RINGFINDER_H