#include <celscript/expression.h>#include <celscript/function.h>Include dependency graph for expression.cpp:

Go to the source code of this file.
|
|
Definition at line 17 of file expression.cpp. |
|
|
Definition at line 18 of file expression.cpp. |
|
||||||||||||
|
Definition at line 252 of file expression.cpp. References ErrorValue, celx::NumberType, and celx::Value::numberValue(). 00253 {
00254 if (a.getType() == NumberType && b.getType() == NumberType)
00255 {
00256 double x0 = 0.0;
00257 double x1 = 0.0;
00258 a.numberValue(x0);
00259 b.numberValue(x1);
00260 return Value(x0 + x1);
00261 }
00262 else
00263 {
00264 return ErrorValue;
00265 }
00266 }
|
|
||||||||||||
|
Definition at line 300 of file expression.cpp. References ErrorValue, celx::NumberType, and celx::Value::numberValue(). 00301 {
00302 if (a.getType() == NumberType && b.getType() == NumberType)
00303 {
00304 double x0 = 0.0;
00305 double x1 = 0.0;
00306 a.numberValue(x0);
00307 b.numberValue(x1);
00308 return Value(x0 / x1);
00309 }
00310 else
00311 {
00312 return ErrorValue;
00313 }
00314 }
|
|
||||||||||||
|
Definition at line 317 of file expression.cpp. 00318 {
00319 return Value(a == b);
00320 }
|
|
||||||||||||
|
Definition at line 347 of file expression.cpp.
|
|
||||||||||||
|
Definition at line 335 of file expression.cpp.
|
|
||||||||||||
|
Definition at line 341 of file expression.cpp.
|
|
||||||||||||
|
Definition at line 329 of file expression.cpp.
|
|
|
Definition at line 359 of file expression.cpp.
|
|
||||||||||||
|
Definition at line 284 of file expression.cpp. References ErrorValue, celx::NumberType, and celx::Value::numberValue(). 00285 {
00286 if (a.getType() == NumberType && b.getType() == NumberType)
00287 {
00288 double x0 = 0.0;
00289 double x1 = 0.0;
00290 a.numberValue(x0);
00291 b.numberValue(x1);
00292 return Value(x0 * x1);
00293 }
00294 else
00295 {
00296 return ErrorValue;
00297 }
00298 }
|
|
|
Definition at line 354 of file expression.cpp.
|
|
||||||||||||
|
Definition at line 323 of file expression.cpp. 00324 {
00325 return Value(a != b);
00326 }
|
|
||||||||||||
|
Definition at line 268 of file expression.cpp. References ErrorValue, celx::NumberType, and celx::Value::numberValue(). 00269 {
00270 if (a.getType() == NumberType && b.getType() == NumberType)
00271 {
00272 double x0 = 0.0;
00273 double x1 = 0.0;
00274 a.numberValue(x0);
00275 b.numberValue(x1);
00276 return Value(x0 - x1);
00277 }
00278 else
00279 {
00280 return ErrorValue;
00281 }
00282 }
|
|
|
Definition at line 20 of file expression.cpp. |
|
|
Initial value:
{
AddFunc,
SubtractFunc,
MultiplyFunc,
DivideFunc,
EqualFunc,
NotEqualFunc,
LesserFunc,
GreaterFunc,
LesserEqualFunc,
GreaterEqualFunc,
NULL,
}
Definition at line 34 of file expression.cpp. Referenced by celx::BinaryExpression::eval(). |
|
|
Definition at line 23 of file expression.cpp. |
|
|
Definition at line 24 of file expression.cpp. |
|
|
Definition at line 31 of file expression.cpp. Referenced by AddFunc(), DivideFunc(), MultiplyFunc(), and SubtractFunc(). |
|
|
Definition at line 29 of file expression.cpp. |
|
|
Definition at line 27 of file expression.cpp. |
|
|
Definition at line 28 of file expression.cpp. |
|
|
Definition at line 26 of file expression.cpp. |
|
|
Definition at line 51 of file expression.cpp. |
|
|
Definition at line 22 of file expression.cpp. |
|
|
Definition at line 50 of file expression.cpp. |
|
|
Definition at line 25 of file expression.cpp. |
|
|
Definition at line 21 of file expression.cpp. |
|
|
Initial value:
{
NegateFunc,
LogicalNotFunc,
NULL,
}
Definition at line 52 of file expression.cpp. Referenced by celx::UnaryExpression::eval(). |
1.4.1