• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • sources
  • kde-4.14
  • kdeedu
  • analitza
  • analitza
abstractexpressionvisitor.h
Go to the documentation of this file.
1 /*************************************************************************************
2  * Copyright (C) 2008 by Aleix Pol <aleixpol@kde.org> *
3  * Copyright (C) 2014 by Percy Camilo T. Aucahuasi <percy.camilo.ta@gmail.com> *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License *
7  * as published by the Free Software Foundation; either version 2 *
8  * of the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the Free Software *
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA *
18  *************************************************************************************/
19 
20 #ifndef ABSTRACTEXPRESSIONVISITOR_H
21 #define ABSTRACTEXPRESSIONVISITOR_H
22 
23 #include "analitzaexport.h"
24 
25 #include <QVariant>
26 
27 namespace Analitza
28 {
29 class Object;
30 class Apply;
31 class Ci;
32 class Cn;
33 class CustomObject;
34 class Container;
35 class Operator;
36 class Vector;
37 class List;
38 class Matrix;
39 class MatrixRow;
40 
49 class ANALITZA_EXPORT AbstractExpressionVisitor
50 {
51  public:
52  virtual ~AbstractExpressionVisitor();
53 
54  virtual QVariant visit(const Operator* var) = 0;
55  virtual QVariant visit(const Ci* var) = 0;
56  virtual QVariant visit(const Cn* var) = 0;
57  virtual QVariant visit(const Container* var) = 0;
58  virtual QVariant visit(const Vector* var) = 0;
59  virtual QVariant visit(const List* l) = 0;
60  virtual QVariant visit(const Apply* a) = 0;
61  virtual QVariant visit(const CustomObject* c) = 0;
62  virtual QVariant visit(const Matrix* c) = 0;
63  virtual QVariant visit(const MatrixRow* c) = 0;
64 
65  virtual QVariant result() const = 0;
66 };
67 
68 }
69 
70 #endif
Analitza::AbstractExpressionVisitor
Definition: abstractexpressionvisitor.h:49
Analitza::Cn
Cn is a value in MathML.
Definition: value.h:42
Analitza::Operator
Is the operator representation in the trees.
Definition: operator.h:36
Analitza::CustomObject
Definition: customobject.h:39
Analitza::MatrixRow
Definition: matrix.h:29
Analitza::Ci
A variable object, name refers to MathML standard.
Definition: variable.h:34
Analitza::Vector
Definition: vector.h:34
Analitza::Matrix
Definition: matrix.h:38
analitzaexport.h
Analitza::Container
Container represents special tags of MathML called containers.
Definition: container.h:44
ANALITZA_EXPORT
#define ANALITZA_EXPORT
Definition: analitzaexport.h:31
Analitza::List
Definition: list.h:34
Analitza::Apply
This class is the one that will correspond to MathML apply tags.
Definition: apply.h:41
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal