| Qore Programming Language Reference Manual 1.0.8

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
103 string fullType(*bool with_namespaces);
104
105 public:
107
120 bool intp();
121
122 public:
124
136 AbstractIterator iterator();
137
138 public:
140
153 int lsize();
154
155 public:
157
176 int size();
177
178 public:
180
189 bool sizep();
190
191 public:
193
204 bool strp();
205
206 public:
208
217 bool toBool();
218
219 public:
221
230 float toFloat();
231
232 public:
234
243 int toInt();
244
245 public:
247
256 number toNumber();
257
258 public:
260
271 string toString();
272
273 public:
275
292 string type();
293
294 public:
296
325 int typeCode();
326
327 public:
329
447 bool val();
448 };
449 }
<value>::toNumber
number toNumber()
Returns the arbitrary-precision numeric representation of the value; the default is 0...
<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
Qore::number
number number(softnumber n)
Converts the argument to a number value.
<value>::intp
bool intp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::strp
bool strp()
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>::callp
bool callp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::toBool
bool toBool()
Returns the boolean representation of the value; the default is False.
<value>::toInt
int toInt()
Returns the integer representation of the value; the default is 0.
<value>::type
string type()
Returns the string type for the value.
<value>::empty
bool empty()
Returns True; this method will be reimplemented in container types where it may return False...
<value>::val
bool val()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<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>::lsize
int lsize()
Returns 1; the return value of this method should give the list size of the value, which is normally 1 for non-lists (except for NOTHING where the size will be 0) and the number of the elements in the list for lists; this method will be reimplemented in other types where it may return other values.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
<value>::typeCode
int typeCode()
Returns the type code for the value.
<value>::sizep
bool sizep()
Returns True if the type can return a non-zero size (True for containers including binary objects and...
<value>::fullType
string fullType(*bool with_namespaces)
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...
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
<value>::toString
string toString()
Returns the string representation of the value; the default is an empty string.