Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
Pseudo_QC_Object.dox.h
1 namespace Qore {
4 
5 class <object> : public <value> {
6 
7 public:
9 
19 string className();
20 
21 public:
23 
35 bool empty();
36 
37 public:
39 
51 *string firstKey();
52 
53 public:
55 
76 bool hasCallableMethod(string name);
77 
78 public:
80 
101 bool hasCallableNormalMethod(string name);
102 
103 public:
105 
125 bool hasCallableStaticMethod(string name);
126 
127 public:
129 
139 bool isSystem();
140 
141 public:
143 
156 
157 public:
159 
172 
173 public:
175 
185 list keys();
186 
187 public:
189 
201 *string lastKey();
202 
203 public:
205 
218 
219 public:
221 
233 int size();
234 
235 public:
237 
246 bool sizep();
247 
248 public:
250 
264 int typeCode();
265 
266 public:
268 
284 bool val();
285 };
286 };
int typeCode()
Returns Qore::NT_OBJECT.
list keys()
Returns a list of member names of the object; if called from outside the object, only public members ...
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
*string lastKey()
Returns the last member name in the object or NOTHING if the object has no members; if called from ou...
Methods in this pseudo-class can be executed on objects.
Definition: Pseudo_QC_Object.dox.h:5
bool hasCallableMethod(string name)
Returns True if the given method exists (can be non-static or static) and is callable from the curren...
bool isSystem()
Returns True if the object is a system object (ie a constant object like stdin, etc), False if not.
list list(...)
Returns a list of the arguments passed at the top level.
AbstractIterator iterator()
Returns an ObjectIterator object for the hash.
This class an iterator class for objects.
Definition: QC_ObjectPairIterator.dox.h:37
ObjectKeyIterator keyIterator()
Returns a ObjectKeyIterator object for the hash.
string className()
Returns the class name of the object.
int size()
Returns the number of members in the object, public and private.
This class an iterator class for objectes.
Definition: QC_ObjectKeyIterator.dox.h:37
*string firstKey()
Returns the first member name in the object or NOTHING if the object has no members; if called from o...
bool hasCallableNormalMethod(string name)
Returns True if the given non-static method exists and is callable from the current context...
ObjectPairIterator pairIterator()
Returns a ObjectPairIterator object for the hash.
bool sizep()
Returns True since objects can return a non-zero size.
bool val()
Returns False if the object has no public or private members, True if it does.
bool empty()
Returns True if the object has no public or private members, False if it does.
bool hasCallableStaticMethod(string name)
Returns True if the given static method exists and is callable from the current context.
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10