Qore Programming Language Reference Manual  1.8.1
Pseudo_QC_Bool.dox.h
1 
3 namespace Qore {
5 /***/
6 class <bool> : public <value> {
7 
8 public:
10 
21 bool intp();
22 
23 public:
25 
36 bool strp();
37 
38 public:
40 
54 int typeCode();
55 
56 public:
58 
72 bool val();
73 };
74 }
Methods in this pseudo-class can be executed on booling-point values.
Definition: Pseudo_QC_Bool.dox.h:6
bool strp()
Returns True because boolean values can be converted to strings (False = "0", True = "1")
bool intp()
Returns True because boolean values can be converted to integers (False = 0, True = 1)
bool val()
Returns itself.
int typeCode()
Returns Qore::NT_BOOLEAN.
Methods in this pseudo-class are available to be executed on any value type (even NOTHING); this is t...
Definition: Pseudo_QC_All.dox.h:6
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3