This file is indexed.

/usr/include/MAdLib/AnalyticalSField.h is in libmadlib-dev 1.3.0-2.1.

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
// -*- C++ -*-
// -------------------------------------------------------------------
// MAdLib - Copyright (C) 2008-2009 Universite catholique de Louvain
//
// See the Copyright.txt and License.txt files for license information. 
// You should have received a copy of these files along with MAdLib. 
// If not, see <http://www.madlib.be/license/>
//
// Please report all bugs and problems to <contrib@madlib.be>
//
// Authors: Gaetan Compere, Jean-Francois Remacle
// -------------------------------------------------------------------

#ifndef _H_ANALYTICALSFIELD
#define _H_ANALYTICALSFIELD

#include "SizeFieldBase.h"

#include <vector>

namespace MAd {

  class MAdStringFieldEvaluator;

  // -------------------------------------------------------------------
  typedef pMSize (*sizeFunction)(const double[3],double);

  // -------------------------------------------------------------------
  class AnalyticalSField: public SizeFieldBase
  {
  public:

    AnalyticalSField();
    AnalyticalSField(std::string);
    AnalyticalSField(std::vector<std::string>,std::vector<std::string>,
                     std::vector<std::string>,std::vector<std::string>);
    AnalyticalSField(sizeFunction);
    ~AnalyticalSField();

  public:

    sFieldType getType() const { return ANALYTICALSFIELD; }
    void describe() const;

    void scale(double);

    // set the size
    void setSize(sizeFunction);
    void setSize(const std::string);
    void setSize(std::vector<std::string>,std::vector<std::string>,
                 std::vector<std::string>,std::vector<std::string>);

    // get the size at a location (allocate space!)
    pMSize getSize(const pVertex) const;
    pMSize getSizeOnEntity(const pEntity, const double[3]) const;

    // edge length (squared)
    double SF_VV_lengthSq(const pVertex, const pVertex) const;
    double SF_XYZ_lengthSq(const double[3], const double[3],
                           const pMSize, const pMSize=NULL) const;

    // face area (squared)
    double SF_F_areaSq(const pFace) const;
    double SF_XYZ_areaSq(const double[3][3], const pMSize,
                         const double[3]) const;

    // region volume
    double SF_R_volume(const pRegion) const;
    double SF_XYZ_volume(const double[4][3], const pMSize) const;

    // center and its associated size
    double SF_E_center(const pEdge, double[3], double * reducSq, pMSize *) const;
    double SF_VV_center(const pVertex, const pVertex,
                        double[3], double * reducSq, pMSize *) const;

  private:

    // description of the sizes if we use functions
    sizeFunction sFct;

    // description of the sizes if we use strings
    bool isotropic;
    std::string h0, h1, h2;
    std::vector<std::string> e0, e1, e2;
    MAdStringFieldEvaluator * evaluator;

  private:

    pMSize eval(const double[3]) const;
  };

}

// -------------------------------------------------------------------
#endif