Qore Programming Language Reference Manual  0.8.13.4
Pseudo_QC_All.dox.h
1 namespace Qore {
4 /***/
5 class <value> {
6 
7 public:
9 
20 bool callp();
21 
22 public:
24 
45 bool complexType();
46 
47 public:
49 
66 bool empty();
67 
68 public:
70 
97 string fullType();
98 
99 public:
101 
114 bool intp();
115 
116 public:
118 
131 
132 public:
134 
147 int lsize();
148 
149 public:
151 
170 int size();
171 
172 public:
174 
183 bool sizep();
184 
185 public:
187 
198 bool strp();
199 
200 public:
202 
211 bool toBool();
212 
213 public:
215 
224 float toFloat();
225 
226 public:
228 
237 int toInt();
238 
239 public:
241 
250 number toNumber();
251 
252 public:
254 
265 string toString();
266 
267 public:
269 
281 string type();
282 
283 public:
285 
309 int typeCode();
310 
311 public:
313 
429 bool val();
430 };
431 };
number toNumber()
Returns the arbitrary-precision numeric representation of the value; the default is 0...
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
number number(softnumber n)
Converts the argument to a number value.
bool intp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
bool strp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
string fullType()
returns the full type name which differs from the simple type name in case of complex types and objec...
bool complexType()
returns True if the value has a complex type, False if not
bool callp()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
bool toBool()
Returns the boolean representation of the value; the default is False.
int toInt()
Returns the integer representation of the value; the default is 0.
string type()
Returns the string type for the value.
bool empty()
Returns True; this method will be reimplemented in container types where it may return False...
bool val()
Returns False; this method is reimplemented in other types and will return True if the given expressi...
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...
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.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:2
int typeCode()
Returns the type code for the value.
bool sizep()
Returns True if the type can return a non-zero size (True for containers including binary objects and...
int size()
Returns zero; this method will be reimplemented in container types where it may return a non-zero val...
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
string toString()
Returns the string representation of the value; the default is an empty string.