QGIS API Documentation  3.2.0-Bonn (bc43194)
qgsexpressionutils.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  qgsexpressionutils.cpp
3  -------------------
4  begin : May 2017
5  copyright : (C) 2017 Matthias Kuhn
6  email : [email protected]
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #include "qgsexpressionutils.h"
17 #include "qgsexpressionnode.h"
18 
20 
21 QgsExpressionUtils::TVL QgsExpressionUtils::AND[3][3] =
22 {
23  // false true unknown
24  { False, False, False }, // false
25  { False, True, Unknown }, // true
26  { False, Unknown, Unknown } // unknown
27 };
28 QgsExpressionUtils::TVL QgsExpressionUtils::OR[3][3] =
29 {
30  { False, True, Unknown }, // false
31  { True, True, True }, // true
32  { Unknown, True, Unknown } // unknown
33 };
34 
35 QgsExpressionUtils::TVL QgsExpressionUtils::NOT[3] = { True, False, Unknown };
36