GammaRay API Documentation
2.10.0
|
MetaObject repository. More...
#include <metaobjectrepository.h>
Public Member Functions | |
void | addMetaObject (MetaObject *mo) |
void | clear () |
Clears the content of the meta object repository. More... | |
bool | hasMetaObject (const QString &typeName) const |
MetaObject * | metaObject (const QString &typeName) const |
MetaObject * | metaObject (const QString &typeName, void *&obj) const |
MetaObject * | metaObject (MetaObject *mo, void *&obj) const |
Static Public Member Functions | |
static MetaObjectRepository * | instance () |
MetaObject repository.
Repository of compile-time introspection information for stuff not covered by the Qt meta object system.
void GammaRay::MetaObjectRepository::addMetaObject | ( | MetaObject * | mo | ) |
Adds object type information to the repository.
void GammaRay::MetaObjectRepository::clear | ( | ) |
Clears the content of the meta object repository.
Call this when removing the probe from a target.
bool GammaRay::MetaObjectRepository::hasMetaObject | ( | const QString & | typeName | ) | const |
Returns whether a meta object is known for the given type name.
|
static |
Singleton accessor.
MetaObject* GammaRay::MetaObjectRepository::metaObject | ( | const QString & | typeName | ) | const |
Returns the introspection information for the type with the given name.
MetaObject* GammaRay::MetaObjectRepository::metaObject | ( | const QString & | typeName, |
void *& | obj | ||
) | const |
Returns the introspection information for the given object instance. This behaves as the above function for non-polymorphic types, for polymorphic types it tries to find the most specific derived type for the given instance.
typeName | The name of the (base) type of obj . |
obj | The object pointer is modified if necessary for the corresponding type. This is necessary to support multiple inheritance. |
MetaObject* GammaRay::MetaObjectRepository::metaObject | ( | MetaObject * | mo, |
void *& | obj | ||
) | const |
Same as the above method, just using an already looked-up MetaObject.