qi::MetaObject, qi::MetaMethod, qi::MetaSignal, qi::MetaProperty¶
Summary¶
class qi::MetaObject
Functions (class qi::MetaObject)
Members (class qi::MetaObject)
class qi::MetaSignal
class qi::MetaMethod
Functions (class qi::MetaMethod)
-
qi::MetaMethod::isPrivate
qi::MetaMethod::returnSignature
qi::MetaMethod::returnDescription
Members (class qi::MetaMethod)
class qi::MetaProperty
Functions (class qi::MetaProperty)
Global Classes
Reference¶
qi::MetaObject Class Reference¶
Public Functions¶
-
()MetaObject
-
(const MetaObject& other)MetaObject
-
MetaObject&
(const MetaObject& other)operator=
-
()~MetaObject
-
int
(const std::string& nameWithSignature) constmethodId
-
int
(const std::string& name) constsignalId
-
int
(const std::string& name) constpropertyId
-
MethodMap
() constmethodMap
-
SignalMap
() constsignalMap
-
PropertyMap
() constpropertyMap
-
MetaMethod*
(unsigned int id)method
-
const MetaMethod*
(unsigned int id) constmethod
-
MetaSignal*
(unsigned int id)signal
-
const MetaSignal*
(unsigned int id) constsignal
-
const MetaSignal*
(const std::string& name) constsignal
-
MetaProperty*
(unsigned int id)property
-
const MetaProperty*
(unsigned int id) constproperty
-
int
(const std::string& nameWithOptionalSignature, const GenericFunctionParameters& args, bool* canCache) constfindMethod
-
std::vector<MetaMethod>
(const std::string& name) constfindMethod
-
std::vector<CompatibleMethod>
(const std::string& nameOrSignature) constfindCompatibleMethod
-
std::string
() constdescription
-
(const MethodMap& methodMap, const SignalMap& signalMap, const PropertyMap& propertyMap, const std::string& description)MetaObject
Public Static Functions¶
-
bool
(const std::string& name, unsigned int uid)isPrivateMember
-
qi::MetaObject
(const qi::MetaObject& source, const qi::MetaObject& dest)merge
Types¶
Detailed Description¶
Description of the signals and methods accessible on an ObjectTypeInterface.
Function Documentation¶
-
static bool
qi::MetaObject::
isPrivateMember
(const std::string& name, unsigned int uid)¶ Brief:
Parameters: - name – The member’s name.
- uid – The uid’s name.
Returns: True if the member is considered internal, and should not be listed.
-
static qi::MetaObject
qi::MetaObject::
merge
(const qi::MetaObject& source, const qi::MetaObject& dest)¶ Brief:
Parameters: - source – The source object.
- dest – The destination object.
Returns: The merge’s result of the two objects.
Merge two MetaObject. Dest method and signal ids will be incremented by offset.
-
qi::MetaObject::
MetaObject
()¶
-
qi::MetaObject::
MetaObject
(const MetaObject& other)¶
-
MetaObject&
qi::MetaObject::
operator=
(const MetaObject& other)¶
-
qi::MetaObject::
~MetaObject
()¶
-
int
qi::MetaObject::
methodId
(const std::string& nameWithSignature)const
¶ Brief:
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.
-
int
qi::MetaObject::
signalId
(const std::string& name)const
¶ Brief:
Parameters: - name – The name of the signal or its full signature.
Returns: The signal’s id or -1 if the signal wasn’t found.
-
int
qi::MetaObject::
propertyId
(const std::string& name)const
¶ Brief:
Parameters: - name – The property’s name.
Returns: The property’s id or -1 if the property wasn’t found.
-
MethodMap
qi::MetaObject::
methodMap
()const
¶ Brief:
Returns: The map of all the methods.
-
SignalMap
qi::MetaObject::
signalMap
()const
¶ Brief:
Returns: The map of all the signals.
-
PropertyMap
qi::MetaObject::
propertyMap
()const
¶ Brief:
Returns: The map of all the properties.
-
MetaMethod*
qi::MetaObject::
method
(unsigned int id)¶ Brief:
Parameters: - id – The method’s id.
Returns: The desired method or null if the id is invalid.
-
const MetaMethod*
qi::MetaObject::
method
(unsigned int id)const
¶
-
MetaSignal*
qi::MetaObject::
signal
(unsigned int id)¶ Brief:
Parameters: - id – The signal’s id.
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
¶ Brief:
Parameters: - name – The name of the signal or its full signature.
Returns: The desired signal or null if the signal wasn’t found.
-
MetaProperty*
qi::MetaObject::
property
(unsigned int id)¶ Brief:
Parameters: - id – The property’s id.
Returns: The desired property of null if the id is invalid.
-
const MetaProperty*
qi::MetaObject::
property
(unsigned int id)const
¶
-
int
qi::MetaObject::
findMethod
(const std::string& nameWithOptionalSignature, const GenericFunctionParameters& args, bool* canCache = 0)const
¶ Brief:
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.
Returns: The mathing method id, or -1 if none or an ambiguous set was found.
Find a method matching nameWithOptionalSignature that can be called with arguments args.
-
std::vector<MetaMethod>
qi::MetaObject::
findMethod
(const std::string& name)const
¶ Brief:
Parameters: - name – The exact method’s name.
Returns: A vector containing all the overloaded version of the method.
-
std::vector<CompatibleMethod>
qi::MetaObject::
findCompatibleMethod
(const std::string& nameOrSignature)const
¶ Brief:
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.
Find all the methods compatible with nameOrSignature. If no signature is specified, the method relies on findMethod.
-
std::string
qi::MetaObject::
description
()const
¶ Brief:
Returns: The object’s description.
-
qi::MetaObject::
MetaObject
(const MethodMap& methodMap, const SignalMap& signalMap, const PropertyMap& propertyMap, const std::string& description)¶
qi::MetaMethod Class Reference¶
Public Functions¶
-
()MetaMethod
-
(unsigned int newUid, const MetaMethod& other)MetaMethod
-
unsigned int
() constuid
-
const std::string&
() constname
-
std::string
() consttoString
-
const Signature&
() constparametersSignature
-
const Signature&
() constreturnSignature
-
std::string
() constdescription
-
MetaMethodParameterVector
() constparameters
-
std::string
() constreturnDescription
-
bool
() constisPrivate
-
(unsigned int uid, const qi::Signature& returnSignature, const std::string& name, const qi::Signature& parametersSignature, const std::string& description, const MetaMethodParameterVector& parameters, const std::string& returnDescription)MetaMethod
Detailed Description¶
Representation of a method in an GenericObject.
Members Documentation¶
Function Documentation¶
-
qi::MetaMethod::
MetaMethod
()¶
-
qi::MetaMethod::
MetaMethod
(unsigned int newUid, const MetaMethod& other)¶
-
unsigned int
qi::MetaMethod::
uid
()const
¶
-
const std::string&
qi::MetaMethod::
name
()const
¶
-
std::string
qi::MetaMethod::
toString
()const
¶
-
const Signature&
qi::MetaMethod::
parametersSignature
()const
¶
-
const Signature&
qi::MetaMethod::
returnSignature
()const
¶
-
std::string
qi::MetaMethod::
description
()const
¶
-
MetaMethodParameterVector
qi::MetaMethod::
parameters
()const
¶
-
std::string
qi::MetaMethod::
returnDescription
()const
¶
-
bool
qi::MetaMethod::
isPrivate
()const
¶ return true if method is considered internal, and should not be listed
-
qi::MetaMethod::
MetaMethod
(unsigned int uid, const qi::Signature& returnSignature, const std::string& name, const qi::Signature& parametersSignature, const std::string& description, const MetaMethodParameterVector& parameters, const std::string& returnDescription)¶
qi::MetaSignal Class Reference¶
Public Functions¶
-
(unsigned int uid, const std::string& name, const qi::Signature& sig)MetaSignal
-
()MetaSignal
-
()~MetaSignal
-
const std::string&
() constname
-
std::string
() consttoString
-
const Signature&
() constparametersSignature
-
unsigned int
() constuid
-
bool
() constisPrivate
Detailed Description¶
Representation of a Signal in an GenericObject.
Function Documentation¶
-
qi::MetaSignal::
MetaSignal
(unsigned int uid, const std::string& name, const qi::Signature& sig)¶
-
qi::MetaSignal::
MetaSignal
()¶
-
qi::MetaSignal::
~MetaSignal
()¶
-
const std::string&
qi::MetaSignal::
name
()const
¶
-
std::string
qi::MetaSignal::
toString
()const
¶
-
const Signature&
qi::MetaSignal::
parametersSignature
()const
¶
-
unsigned int
qi::MetaSignal::
uid
()const
¶
qi::MetaProperty Class Reference¶
Public Functions¶
-
(unsigned int uid, const std::string& name, const qi::Signature& sig)MetaProperty
-
()MetaProperty
-
const std::string&
() constname
-
const qi::Signature&
() constsignature
-
std::string
() consttoString
-
unsigned int
() constuid
-
bool
() constisPrivate
Detailed Description¶
Function Documentation¶
-
qi::MetaProperty::
MetaProperty
(unsigned int uid, const std::string& name, const qi::Signature& sig)¶
-
qi::MetaProperty::
MetaProperty
()¶
-
const std::string&
qi::MetaProperty::
name
()const
¶
-
const qi::Signature&
qi::MetaProperty::
signature
()const
¶
-
std::string
qi::MetaProperty::
toString
()const
¶
-
unsigned int
qi::MetaProperty::
uid
()const
¶