Qore Programming Language Reference Manual: lib/Pseudo_QC_All.dox.h Source File

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
Pseudo_QC_All.dox.h
1 namespace Qore {
4
5 class <value> {
6
7 public:
9
20 bool callp();
21
22 public:
24
41 bool empty();
42
43 public:
45
58 bool intp();
59
60 public:
62
74 AbstractIterator iterator();
75
76 public:
78
91 int lsize();
92
93 public:
95
114 int size();
115
116 public:
118
127 bool sizep();
128
129 public:
131
142 bool strp();
143
144 public:
146
155 bool toBool();
156
157 public:
159
168 float toFloat();
169
170 public:
172
181 int toInt();
182
183 public:
185
194 number toNumber();
195
196 public:
198
209 string toString();
210
211 public:
213
225 string type();
226
227 public:
229
253 int typeCode();
254
255 public:
257
284 bool val();
285 };
286 };
<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:5
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>::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.
<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>::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.