Loading...
Searching...
No Matches
Pseudo_QC_Object.dox.h
namespace Qore {
/***/
class <object> : public <value> {
public:
string className();
public:
bool complexType();
public:
bool empty();
public:
*string firstKey();
public:
code getCallReference(string identifier);
public:
bool hasCallableMethod(string name);
public:
bool hasCallableNormalMethod(string name);
public:
bool hasCallableStaticMethod(string name);
public:
bool isSystem();
public:
AbstractIterator iterator();
public:
ObjectKeyIterator keyIterator();
public:
list<string> keys();
public:
*string lastKey();
public:
ObjectPairIterator pairIterator();
public:
int size();
public:
bool sizep();
public:
int typeCode();
public:
string uniqueHash();
public:
bool val();
};
}
Qore::AbstractIterator
This class defines an abstract interface for iterators.
Definition: QC_AbstractIterator.dox.h:10
Qore::ObjectKeyIterator
This class an iterator class for objectes.
Definition: QC_ObjectKeyIterator.dox.h:37
Qore::ObjectPairIterator
This class an iterator class for objects.
Definition: QC_ObjectPairIterator.dox.h:37
<object>
Methods in this pseudo-class can be executed on objects.
Definition: Pseudo_QC_Object.dox.h:6
<object>::uniqueHash
string uniqueHash()
Return a unique string for the data independent of the content.
<object>::getCallReference
code getCallReference(string identifier)
resolve the string as a call reference
<object>::hasCallableNormalMethod
bool hasCallableNormalMethod(string name)
Returns True if the given non-static method exists and is callable from the current context.
<object>::className
string className()
Returns the class name of the object.
<object>::keyIterator
ObjectKeyIterator keyIterator()
Returns a ObjectKeyIterator object for the object, iterating the object's members.
<object>::hasCallableStaticMethod
bool hasCallableStaticMethod(string name)
Returns True if the given static method exists and is callable from the current context.
<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>::keys
list< string > keys()
Returns a list of member names of the object; if called from outside the object, only public members ...
<object>::pairIterator
ObjectPairIterator pairIterator()
Returns a ObjectPairIterator object for the object's members.
<object>::iterator
AbstractIterator iterator()
Returns an ObjectIterator object for the object's members.
<object>::sizep
bool sizep()
Returns True since objects can return a non-zero size.
<object>::empty
bool empty()
Returns True if the object has no public or private members, False if it does.
<object>::val
bool val()
Returns False if the object has no public or private members, True if it does.
<object>::size
int size()
Returns the number of members in the object, public and private.
<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>::typeCode
int typeCode()
Returns Qore::NT_OBJECT.
<object>::complexType
bool complexType()
returns True in all cases for objects
<object>::isSystem
bool isSystem()
Returns True if the object is a system object (ie a constant object like stdin, etc),...
<object>::lastKey
*string lastKey()
Returns the last member name in the object or NOTHING if the object has no members; if called from ou...
<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:6
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3