Qore Programming Language Reference Manual  0.8.8
 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 
75 
76 public:
78 
91 int lsize();
92 
93 public:
95 
112 int size();
113 
114 public:
116 
127 bool strp();
128 
129 public:
131 
140 bool toBool();
141 
142 public:
144 
153 float toFloat();
154 
155 public:
157 
166 int toInt();
167 
168 public:
170 
179 number toNumber();
180 
181 public:
183 
194 string toString();
195 
196 public:
198 
210 string type();
211 
212 public:
214 
238 int typeCode();
239 
240 public:
242 
267 bool val();
268 };
269 };
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...
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.
int typeCode()
Returns the type code for the value.
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.