Description of the signals and methods accessible on an ObjectTypeInterface.
More...
#include <metaobject.hpp>
Description of the signals and methods accessible on an ObjectTypeInterface.
Definition at line 25 of file metaobject.hpp.
qi::MetaObject::MetaObject |
( |
| ) |
|
qi::MetaObject::MetaObject |
( |
const MetaObject & |
other | ) |
|
qi::MetaObject::~MetaObject |
( |
| ) |
|
qi::MetaObject::MetaObject |
( |
const MethodMap & |
methodMap, |
|
|
const SignalMap & |
signalMap, |
|
|
const PropertyMap & |
propertyMap, |
|
|
const std::string & |
description |
|
) |
| |
std::string qi::MetaObject::description |
( |
| ) |
const |
- Returns
- The object's description.
std::vector<CompatibleMethod> qi::MetaObject::findCompatibleMethod |
( |
const std::string & |
nameOrSignature | ) |
const |
Find all the methods compatible with nameOrSignature. If no signature is specified, the method relies on findMethod.
- Parameters
-
nameOrSignature | Either the name or the signature of the method. |
- Returns
- A vector containing all the compatible method and their associated compatibility's score.
int qi::MetaObject::findMethod |
( |
const std::string & |
nameWithOptionalSignature, |
|
|
const GenericFunctionParameters & |
args, |
|
|
bool * |
canCache = 0 |
|
) |
| const |
Find a method matching nameWithOptionalSignature that can be called with arguments args.
- Returns
- The mathing method id, or -1 if none or an ambiguous set was found.
- Warning
- This method optimises for speed at the expense of possible false positive: It returns a match as soon as there is only one possible candidate remaining, even though this candidate can prove later on to be incompatible with the arguments.
- Parameters
-
nameWithOptionalSignature | The method's name or its full signature. |
args | The parameters' type of the method. |
canCache | If set, will be filled with true if the returned method can be cached regardless of the arguments types (but not argument count), and false otherwise. |
std::vector<MetaMethod> qi::MetaObject::findMethod |
( |
const std::string & |
name | ) |
const |
- Parameters
-
name | The exact method's name. |
- Returns
- A vector containing all the overloaded version of the method.
static bool qi::MetaObject::isPrivateMember |
( |
const std::string & |
name, |
|
|
unsigned int |
uid |
|
) |
| |
|
static |
- Parameters
-
name | The member's name. |
uid | The uid's name. |
- Returns
- True if the member is considered internal, and should not be listed.
Merge two MetaObject. Dest method and signal ids will be incremented by offset.
- Parameters
-
source | The source object. |
dest | The destination object. |
- Returns
- The merge's result of the two objects.
MetaMethod* qi::MetaObject::method |
( |
unsigned int |
id | ) |
|
- Parameters
-
- Returns
- The desired method or null if the id is invalid.
const MetaMethod* qi::MetaObject::method |
( |
unsigned int |
id | ) |
const |
int qi::MetaObject::methodId |
( |
const std::string & |
nameWithSignature | ) |
const |
- Parameters
-
nameWithSignature | The complete full signature (name::signature) for example myMethod::(s). |
- Returns
- The method's id or -1 if the method wasn't found.
MethodMap qi::MetaObject::methodMap |
( |
| ) |
const |
- Returns
- The map of all the methods.
- Parameters
-
- Returns
- The desired property of null if the id is invalid.
const MetaProperty* qi::MetaObject::property |
( |
unsigned int |
id | ) |
const |
int qi::MetaObject::propertyId |
( |
const std::string & |
name | ) |
const |
- Parameters
-
- Returns
- The property's id or -1 if the property wasn't found.
- Returns
- The map of all the properties.
MetaSignal* qi::MetaObject::signal |
( |
unsigned int |
id | ) |
|
- Parameters
-
- Returns
- The desired signal or null if the id is invalid.
const MetaSignal* qi::MetaObject::signal |
( |
unsigned int |
id | ) |
const |
const MetaSignal* qi::MetaObject::signal |
( |
const std::string & |
name | ) |
const |
- Parameters
-
name | The name of the signal or its full signature. |
- Returns
- The desired signal or null if the signal wasn't found.
int qi::MetaObject::signalId |
( |
const std::string & |
name | ) |
const |
- Parameters
-
name | The name of the signal or its full signature. |
- Returns
- The signal's id or -1 if the signal wasn't found.
SignalMap qi::MetaObject::signalMap |
( |
| ) |
const |
- Returns
- The map of all the signals.
MetaObjectPrivate* qi::MetaObject::_p |
The documentation for this class was generated from the following file: