| Qore Programming Language Reference Manual 0.9.14

Pseudo_QC_All.dox.h
1
3 namespace Qore {
5 /***/
6 class <value> {
7
8 public:
10
21 bool callp();
22
23 public:
25
48 bool complexType();
49
50 public:
52
69 bool empty();
70
71 public:
73
101 string fullType();
102
103 public:
105
118 bool intp();
119
120 public:
122
134 AbstractIterator iterator();
135
136 public:
138
151 int lsize();
152
153 public:
155
174 int size();
175
176 public:
178
187 bool sizep();
188
189 public:
191
202 bool strp();
203
204 public:
206
215 bool toBool();
216
217 public:
219
228 float toFloat();
229
230 public:
232
241 int toInt();
242
243 public:
245
254 number toNumber();
255
256 public:
258
269 string toString();
270
271 public:
273
290 string type();
291
292 public:
294
323 int typeCode();
324
325 public:
327
445 bool val();
446 };
447 }
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
<value>
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
<value>::toString
string toString()
Returns the string representation of the value; the default is an empty string.
<value>::toFloat
float toFloat()
Returns the floating-point representation of the value; the default is 0.0.
<value>::iterator
AbstractIterator iterator()
Returns an iterator object for the value; the default iterator object returned is SingleValueIterator...
<value>::type
string type()
Returns the string type for the value.
<value>::val
bool val()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::callp
bool callp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::complexType
bool complexType()
returns True if the value has a complex type, False if not
<value>::typeCode
int typeCode()
Returns the type code for the value.
<value>::lsize
int lsize()
Returns 1; the return value of this method should give the list size of the value,...
<value>::toBool
bool toBool()
Returns the boolean representation of the value; the default is False.
<value>::intp
bool intp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::fullType
string fullType()
returns the full type name which differs from the simple type name in case of complex types and objec...
<value>::size
int size()
Returns zero; this method will be reimplemented in container types where it may return a non-zero val...
<value>::empty
bool empty()
Returns True; this method will be reimplemented in container types where it may return False.
<value>::toNumber
number toNumber()
Returns the arbitrary-precision numeric representation of the value; the default is 0.
<value>::toInt
int toInt()
Returns the integer representation of the value; the default is 0.
<value>::sizep
bool sizep()
Returns True if the type can return a non-zero size (True for containers including binary objects and...
<value>::strp
bool strp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
Qore::number
number number(softnumber n)
Converts the argument to a number value.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3