condOpNode.h
Ir a la documentación de este archivo.
1 //condOpNode.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_CONDOPNODE_
43 #define _RUN_OPERATORS_CONDOPNODE_
44 
45 #include "../tree/typeNode.h"
46 //-------------------------------------------------------------------------------------------
47 
48 //-------------------------------------------------------------------------------------------
59 class ternNode : public nexpNode {
60  public:
67  ternNode (runNode* cond, runNode* yes, runNode* no);
73  void run ();
74  private:
75  runNode *cond_;
76  runNode *yes_;
77  runNode *no_;
78 };
79 //----------------------------------------------------------------------
80 
81 //----------------------------------------------------------------------
90 class notnullNode : public nexpNode {
91  public:
96  notnullNode (runNode* list);
103  void run ();
104  private:
105  runNode *list_;
106 };
107 //-------------------------------------------------------------------------------------------
108 
109 //-------------------------------------------------------------------------------------------
110 #endif
111 //-------------------------------------------------------------------------------------------
112 //Fco. Javier Bohórquez Ogalla
Node operador fusión de nulos.
Definition: condOpNode.h:90
Nodo ejecutable.
Definition: runTree.h:123
ternNode(runNode *cond, runNode *yes, runNode *no)
Definition: condOpNode.cpp:39
void run()
Definition: condOpNode.cpp:41
void run()
Definition: condOpNode.cpp:71
notnullNode(runNode *list)
Definition: condOpNode.cpp:69
Nodo expresión de tipo no definido.
Definition: expNode.h:164
Node operador ternario.
Definition: condOpNode.h:59