This file is indexed.

/usr/include/deal.II/base/quadrature_selector.h is in libdeal.ii-dev 6.3.1-1.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
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
//---------------------------------------------------------------------------
//    $Id: quadrature_selector.h 14038 2006-10-23 02:46:34Z bangerth $
//    Version: $Name$
//
//    Copyright (C) 2003, 2004, 2005, 2006 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//---------------------------------------------------------------------------

#ifndef __deal2__quadrature_selector_h
#define __deal2__quadrature_selector_h


#include <base/quadrature.h>
#include <base/exceptions.h>

#include <string>

DEAL_II_NAMESPACE_OPEN

/**
 * This class implements the quadrature rule passed to its constructor
 * as a string. Supported quadratures are QGauss (of all
 * orders), QMidpoint, QMilne, QSimpson,
 * QTrapez and QWeddle.
 *
 * This class is useful if you want to use flexible quadrature rules,
 * that are read from a parameter file (see ParameterHandler for
 * this).
 *
 * @ingroup Quadrature
 * @author Ralf Schulz, 2003
 */
template<int dim>
class QuadratureSelector : public Quadrature<dim>
{
  public:
				     /**
				      * Constructor. Takes the name of
				      * the quadrature rule (one of
				      * "gauss", "milne", "weddle",
				      * etc) and, if it iss "gauss",
				      * the order of the quadrature
				      * rule as argument.
				      */
    QuadratureSelector (const std::string &s,
			const unsigned int order=0);

				     /**
				      * This function returns all
				      * possible names for quadratures
				      * as a list separated by <tt>|</tt>,
				      * so that you can use it for the
				      * definition of parameter files
				      * (see ParameterHandler for
				      * details).
				      */
    static std::string get_quadrature_names();

    				     /** @addtogroup Exceptions
				      * @{ */


				     /**
				      * Exception
				      */
    DeclException1 (ExcInvalidQGaussOrder,
		    int,
		    << "You tried to generate QGauss with an invalid order of "
		    << arg1 << " (must be >= 2)");
				     /**
				      * Exception
				      */
    DeclException2 (ExcInvalidOrder,
		    std::string,
		    unsigned int,
		    << "You tried to generate a " << arg1
		    << " object; no order is needed (" << arg2
		    << " was given as parameter)");
				     /**
				      * Exception
				      */
    DeclException1 (ExcInvalidQuadrature,
		    std::string,
		    << arg1
		    << " is not a valid quadrature name for a quadrature rule");
				     //@}
  private:
				     /**
				      * This static function creates a
				      * quadrature object according to
				      * the name given as a string,
				      * and the appropriate order (if
				      * the name is "gauss"). It is
				      * called from the constructor.
				      */
    static
    Quadrature<dim>
    create_quadrature (const std::string &s,
		       const unsigned int order);
};
DEAL_II_NAMESPACE_CLOSE

#endif