This file is indexed.

/usr/include/BALL/DOCKING/GENETICDOCK/geneticIndividual.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
// ----------------------------------------------------
// $Maintainer: Marcel Schumann $
// $Authors: Jan Fuhrmann, Marcel Schumann $
// ----------------------------------------------------

#ifndef BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H
#define BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H

#include <vector>

#include <BALL/DOCKING/GENETICDOCK/genes.h>

namespace BALL
{
  class BALL_EXPORT GeneticIndividual
    {
    public:
      /** standard constructor
       */
      GeneticIndividual();

      /** copy constructor
       */
      GeneticIndividual(const GeneticIndividual& gi);

      /** assigment operator
       */
      GeneticIndividual& operator = (const GeneticIndividual& gi);

      /** destructor
       */
      ~GeneticIndividual();

      /** smaller operator regarding fitness score
       */
      bool operator<(const GeneticIndividual& gi) const;

      /** assigns fitness score
       */
      void setFitnessValue(const double& d);

      /** get fitness score
       */
      double getFitnessValue();

      /**  assigns value to altered_
       */
      void setAltered(bool b);

      /** true if individual has changed since the last computation of the fitness score
       */
      bool isAltered();

      /** counts number of genes
       */
      Size numberOfGenes();

      /** get i-th gene
       */
      GenericGene* getGene(const Size& i);

      /** push back gene gg
       */
      void insert(GenericGene* gg);

      /** mate two individuals
       */
      void mate(GeneticIndividual& parent, GeneticIndividual& offspring);

      /** true if indiviual has been mutated
       */
      bool isMutated();

      /** assigns value to mutated_
       */
      void setMutated(bool);

      /** randomize all genes
       */
      void randomize();

    private:

      /** fitness score
       */
      double fitness_value_;

      /** true if individual has changed since the last computation of the fitness score
       */
      bool altered_;

      /** true if indiviual has been mutated
       */
      bool mutated_;

      /** container for genes
       */
      std::vector<GenericGene*> genes_;

    };
}

#endif /* BALL_DOCKING_GENETICDOCK_GENETICINDIVIDUAL_H */