QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
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 #include "qgsvectorlayer.h"
19 
21 
22 QgsExpressionUtils::TVL QgsExpressionUtils::AND[3][3] =
23 {
24  // false true unknown
25  { False, False, False }, // false
26  { False, True, Unknown }, // true
27  { False, Unknown, Unknown } // unknown
28 };
29 QgsExpressionUtils::TVL QgsExpressionUtils::OR[3][3] =
30 {
31  { False, True, Unknown }, // false
32  { True, True, True }, // true
33  { Unknown, True, Unknown } // unknown
34 };
35 
36 QgsExpressionUtils::TVL QgsExpressionUtils::NOT[3] = { True, False, Unknown };
37 
39 
40