Qore Programming Language Reference Manual  0.9.4.1
Pseudo_QC_All.dox.h
1 namespace Qore {
4 /***/
5 class <value> {
6 
7 public:
9 
20 bool callp();
21 
22 public:
24 
47 bool complexType();
48 
49 public:
51 
68 bool empty();
69 
70 public:
72 
100 string fullType();
101 
102 public:
104 
117 bool intp();
118 
119 public:
121 
134 
135 public:
137 
150 int lsize();
151 
152 public:
154 
173 int size();
174 
175 public:
177 
186 bool sizep();
187 
188 public:
190 
201 bool strp();
202 
203 public:
205 
214 bool toBool();
215 
216 public:
218 
227 float toFloat();
228 
229 public:
231 
240 int toInt();
241 
242 public:
244 
253 number toNumber();
254 
255 public:
257 
268 string toString();
269 
270 public:
272 
289 string type();
290 
291 public:
293 
322 int typeCode();
323 
324 public:
326 
442 bool val();
443 };
444 };
<value>::strp
bool strp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::size
int size()
Returns zero; this method will be reimplemented in container types where it may return a non-zero val...
<value>::type
string type()
Returns the string type for the value.
<value>::toBool
bool toBool()
Returns the boolean representation of the value; the default is False.
<value>::fullType
string fullType()
returns the full type name which differs from the simple type name in case of complex types and objec...
<value>::lsize
int lsize()
Returns 1; the return value of this method should give the list size of the value,...
<value>::typeCode
int typeCode()
Returns the type code for the value.
<value>::intp
bool intp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::toNumber
number toNumber()
Returns the arbitrary-precision numeric representation of the value; the default is 0.
<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>::callp
bool callp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
<value>::empty
bool empty()
Returns True; this method will be reimplemented in container types where it may return False.
<value>::toInt
int toInt()
Returns the integer 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
<value>::complexType
bool complexType()
returns True if the value has a complex type, False if not
<value>::toString
string toString()
Returns the string representation of the value; the default is an empty string.
<value>::iterator
AbstractIterator iterator()
Returns an iterator object for the value; the default iterator object returned is SingleValueIterator...
Qore::number
number number(softnumber n)
Converts the argument to a number value.
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
<value>::sizep
bool sizep()
Returns True if the type can return a non-zero size (True for containers including binary objects and...