convOpNode.h
Ir a la documentación de este archivo.
1 //convOpNode.h
2 //-------------------------------------------------------------------------------------------
3 /*
4  * Fco. Javier Bohórquez Ogalla
5  * 75766599-E
6  * Puerto Real (Cádiz)
7  * powersgame@gmail.com
8  */
9 //-------------------------------------------------------------------------------------------
10 
11 //-------------------------------------------------------------------------------------------
12 /*
13  * This program is free software; you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation; either version 2 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
26  * MA 02110-1301, USA.
27  */
28 //-------------------------------------------------------------------------------------------
29 
30 //-------------------------------------------------------------------------------------------
39 //-------------------------------------------------------------------------------------------
40 
41 //-------------------------------------------------------------------------------------------
42 #ifndef _RUN_OPERATORS_CONVOPNODE_
43 #define _RUN_OPERATORS_CONVOPNODE_
44 
45 #include "../tree/typeNode.h"
46 //-------------------------------------------------------------------------------------------
47 
48 //-------------------------------------------------------------------------------------------
61 class boolconvNode :
62  public logicNode {
63  public:
68  boolconvNode (runNode* node);
73  void run ();
79  static num do_boolconv (runNode *node);
80  private:
81  runNode *node_;
82 };
83 //----------------------------------------------------------------------
84 
85 //----------------------------------------------------------------------
100 class intconvNode :
101  public arithNode {
102  public:
107  intconvNode (runNode* node);
112  void run ();
118  static int do_intconv (runNode *node);
119  private:
120  runNode *node_;
121 };
122 //----------------------------------------------------------------------
123 
124 //----------------------------------------------------------------------
140  public arithNode {
141  public:
146  floatconvNode (runNode* node);
151  void run ();
157  static num do_floatconv (runNode *node);
158  private:
159  runNode *node_;
160 };
161 //----------------------------------------------------------------------
162 
163 //----------------------------------------------------------------------
176 class strconvNode :
177  public stringNode {
178  public:
183  strconvNode (runNode* node);
188  void run ();
189  private:
190  runNode *node_;
191 };
192 //-------------------------------------------------------------------------------------------
193 
194 //-------------------------------------------------------------------------------------------
195 #endif
196 //-------------------------------------------------------------------------------------------
197 //Fco. Javier Bohórquez Ogalla
Nodos lógicos.
Definition: expNode.h:279
void run()
Definition: convOpNode.cpp:89
boolconvNode(runNode *node)
Definition: convOpNode.cpp:39
Nodos aritméticos.
Definition: expNode.h:351
static int do_intconv(runNode *node)
Definition: convOpNode.cpp:80
Nodo de conversión a entero.
Definition: convOpNode.h:100
strconvNode(runNode *node)
Definition: convOpNode.cpp:111
void run()
Definition: convOpNode.cpp:65
Nodo ejecutable.
Definition: runTree.h:123
Nodo de conversión a flotante.
Definition: convOpNode.h:139
void run()
Definition: convOpNode.cpp:41
void run()
Definition: convOpNode.cpp:113
intconvNode(runNode *node)
Definition: convOpNode.cpp:63
Nodo de conversión a cadena de caracteres.
Definition: convOpNode.h:176
static num do_boolconv(runNode *node)
Definition: convOpNode.cpp:56
Nodo de conversión a booleano.
Definition: convOpNode.h:61
floatconvNode(runNode *node)
Definition: convOpNode.cpp:87
Nodos cadenas de texto.
Definition: expNode.h:418
static num do_floatconv(runNode *node)
Definition: convOpNode.cpp:104