Qore Programming Language Reference Manual  0.9.4.1
Pseudo_QC_Object.dox.h
1 namespace Qore {
4 /***/
5 class <object> : public <value> {
6 
7 public:
9 
21 string className();
22 
23 public:
25 
40 bool complexType();
41 
42 public:
44 
56 bool empty();
57 
58 public:
60 
72 *string firstKey();
73 
74 public:
76 
97 bool hasCallableMethod(string name);
98 
99 public:
101 
122 bool hasCallableNormalMethod(string name);
123 
124 public:
126 
146 bool hasCallableStaticMethod(string name);
147 
148 public:
150 
160 bool isSystem();
161 
162 public:
164 
177 
178 public:
180 
193 
194 public:
196 
206 list<string> keys();
207 
208 public:
210 
222 *string lastKey();
223 
224 public:
226 
239 
240 public:
242 
254 int size();
255 
256 public:
258 
267 bool sizep();
268 
269 public:
271 
285 int typeCode();
286 
287 public:
289 
298 string uniqueHash();
299 
300 public:
302 
318 bool val();
319 };
320 };
Qore::ObjectKeyIterator
This class an iterator class for objectes.
Definition: QC_ObjectKeyIterator.dox.h:37
<object>::empty
bool empty()
Returns True if the object has no public or private members, False if it does.
<object>::typeCode
int typeCode()
Returns Qore::NT_OBJECT.
<object>
Methods in this pseudo-class can be executed on objects.
Definition: Pseudo_QC_Object.dox.h:5
<object>::complexType
bool complexType()
returns True in all cases for objects
<object>::lastKey
*string lastKey()
Returns the last member name in the object or NOTHING if the object has no members; if called from ou...
<object>::hasCallableMethod
bool hasCallableMethod(string name)
Returns True if the given method exists (can be non-static or static) and is callable from the curren...
<object>::uniqueHash
string uniqueHash()
Return a unique string for the data independent of the content.
<object>::iterator
AbstractIterator iterator()
Returns an ObjectIterator object for the object's members.
<object>::keyIterator
ObjectKeyIterator keyIterator()
Returns a ObjectKeyIterator object for the object, iterating the object's members.
<object>::isSystem
bool isSystem()
Returns True if the object is a system object (ie a constant object like stdin, etc),...
<object>::firstKey
*string firstKey()
Returns the first member name in the object or NOTHING if the object has no members; if called from o...
<object>::size
int size()
Returns the number of members in the object, public and private.
<object>::className
string className()
Returns the class name of the object.
<object>::hasCallableNormalMethod
bool hasCallableNormalMethod(string name)
Returns True if the given non-static method exists and is callable from the current context.
Qore::ObjectPairIterator
This class an iterator class for objects.
Definition: QC_ObjectPairIterator.dox.h:37
<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
<object>::sizep
bool sizep()
Returns True since objects can return a non-zero size.
<object>::val
bool val()
Returns False if the object has no public or private members, True if it does.
<object>::pairIterator
ObjectPairIterator pairIterator()
Returns a ObjectPairIterator object for the object's members.
<object>::keys
list< string > keys()
Returns a list of member names of the object; if called from outside the object, only public members ...
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
<object>::hasCallableStaticMethod
bool hasCallableStaticMethod(string name)
Returns True if the given static method exists and is callable from the current context.