This file is indexed.

/usr/include/analitza/apply.h is in libanalitza-dev 4:4.14.0-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
/*************************************************************************************
 *  Copyright (C) 2007-2010 by Aleix Pol <aleixpol@kde.org>                          *
 *                                                                                   *
 *  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.                                     *
 *                                                                                   *
 *  You should have received a copy of the GNU General Public License                *
 *  along with this program; if not, write to the Free Software                      *
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA   *
 *************************************************************************************/

#ifndef APPLY_H
#define APPLY_H
#include "object.h"
#include "analitzaexport.h"
#include "operator.h"

namespace Analitza
{
class Operator;
class Ci;

/**
 * \class Apply
 * 
 * \ingroup AnalitzaModule
 *
 * \brief This class is the one that will correspond to MathML apply tags.
 *
 * Stores and helps to retrieve any data it has inside like bvars, 
 * operators and values.
 */

class ANALITZA_EXPORT Apply : public Object
{
	public:
		Apply();
		virtual ~Apply();
		
		typedef QVector<Object*>::const_iterator const_iterator;
		typedef QVector<Object*>::iterator iterator;
		
		virtual Apply* copy() const;
		virtual bool matches(const Analitza::Object* exp, QMap< QString, const Analitza::Object* >* found) const;
		virtual QVariant accept(AbstractExpressionVisitor* exp) const;
		const Operator& firstOperator() const { return m_op; }
		int countValues() const { return m_params.size(); }
		
		void prependBranch(Object* o);
		void appendBranch(Object* o);
		
		/** Adds @p bvar into the list of bvars */
		void addBVar(Analitza::Ci* bvar);
		
		/** Returns whether that apply has any bvar */
		bool hasBVars() const { return !m_bvars.isEmpty(); }
		
		/** Returns the apply's bvars names */
		QStringList bvarStrings() const;
		Object* ulimit() const { return m_ulimit; }
		Object* dlimit() const { return m_dlimit; }
		Object* domain() const { return m_domain; }
		
		Object*& ulimit() { return m_ulimit; }
		Object*& dlimit() { return m_dlimit; }
		Object*& domain() { return m_domain; }
		
		/** @deprecated should use begin() now */
		iterator firstValue() { return m_params.begin(); }
		iterator begin() { return m_params.begin(); }
		iterator end() { return m_params.end(); }
		const_iterator firstValue() const { return m_params.constBegin(); }
		const_iterator constBegin() const { return m_params.constBegin(); }
		const_iterator constEnd() const { return m_params.constEnd(); }
		QVector<Ci*> bvarCi() const { return m_bvars; }
		bool isUnary() const { return m_params.size()==1; }
		bool isEmpty() const { return m_params.isEmpty(); }
		bool operator==(const Apply& a) const;
		
		/** Adds a @p o branch right after @p before of the Container. */
		void insertBranch(Apply::iterator before, Object* o) { m_params.insert(before, o); }
		QVector<Object*> values() const { return m_params; }
		Object* at(int p) const;
		
		/** @returns if there's any bounding specified */
		bool hasBoundings() const;
		
		QVector<Object*> m_params;
	private:
		Apply(const Apply& );
		bool addBranch(Object* o);
		
		Object* m_ulimit, *m_dlimit, *m_domain;
		QVector<Ci*> m_bvars;
		Operator m_op;
};

}
#endif // APPLY_H