GammaRay API Documentation  2.11.3
Public Member Functions | Static Public Member Functions | List of all members
GammaRay::MetaObjectRepository Class Reference

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
MetaObjectmetaObject (const QString &typeName) const
MetaObjectmetaObject (const QString &typeName, void *&obj) const
MetaObjectmetaObject (MetaObject *mo, void *&obj) const

Static Public Member Functions

static MetaObjectRepositoryinstance ()

Detailed Description

MetaObject repository.

Repository of compile-time introspection information for stuff not covered by the Qt meta object system.

Member Function Documentation

◆ addMetaObject()

void GammaRay::MetaObjectRepository::addMetaObject ( MetaObject mo)

Adds object type information to the repository.

◆ clear()

void GammaRay::MetaObjectRepository::clear ( )

Clears the content of the meta object repository.

Call this when removing the probe from a target.

◆ hasMetaObject()

bool GammaRay::MetaObjectRepository::hasMetaObject ( const QString typeName) const

Returns whether a meta object is known for the given type name.

◆ instance()

static MetaObjectRepository* GammaRay::MetaObjectRepository::instance ( )

Singleton accessor.

◆ metaObject() [1/3]

MetaObject* GammaRay::MetaObjectRepository::metaObject ( const QString typeName) const

Returns the introspection information for the type with the given name.

◆ metaObject() [2/3]

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.

typeNameThe name of the (base) type of obj.
objThe object pointer is modified if necessary for the corresponding type. This is necessary to support multiple inheritance.

◆ metaObject() [3/3]

MetaObject* GammaRay::MetaObjectRepository::metaObject ( MetaObject mo,
void *&  obj 
) const

Same as the above method, just using an already looked-up MetaObject.

© 2010-2021 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
GammaRay Qt-application inspection and manipulation tool
Generated on Wed Mar 15 2023 01:05:10 for GammaRay API Documentation by doxygen 1.8.20