Qore Programming Language Reference Manual 1.18.0
Loading...
Searching...
No Matches
Pseudo_QC_All.dox.h
1
3namespace Qore {
5/***/
6class <value> {
7
8public:
10
21bool callp();
22
23public:
25
49
50public:
52
69bool empty();
70
71public:
73
103string fullType(*bool with_namespaces);
104
105public:
107
120bool intp();
121
122public:
124
137
138public:
140
153int lsize();
154
155public:
157
176int size();
177
178public:
180
189bool sizep();
190
191public:
193
204bool strp();
205
206public:
208
217bool toBool();
218
219public:
221
230float toFloat();
231
232public:
234
243int toInt();
244
245public:
247
257
258public:
260
271string toString();
272
273public:
275
292string type();
293
294public:
296
326
327public:
329
447bool val();
448};
449}
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
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
string toString()
Returns the string representation of the value; the default is an empty string.
float toFloat()
Returns the floating-point representation of the value; the default is 0.0.
AbstractIterator iterator()
Returns an iterator object for the value; the default iterator object returned is SingleValueIterator...
string type()
Returns the string type for the value.
bool val()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
bool callp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
bool complexType()
returns True if the value has a complex type, False if not
int typeCode()
Returns the type code for the value.
int lsize()
Returns 1; the return value of this method should give the list size of the value,...
bool toBool()
Returns the boolean representation of the value; the default is False.
bool intp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
int size()
Returns zero; this method will be reimplemented in container types where it may return a non-zero val...
bool empty()
Returns True; this method will be reimplemented in container types where it may return False.
string fullType(*bool with_namespaces)
returns the full type name which differs from the simple type name in case of complex types and objec...
number toNumber()
Returns the arbitrary-precision numeric representation of the value; the default is 0.
int toInt()
Returns the integer representation of the value; the default is 0.
bool sizep()
Returns True if the type can return a non-zero size (True for containers including binary objects and...
bool strp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
number number()
Always returns 0.0.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2