Global Classes
class qi::Signature
Functions (class qi::Signature)
Global Functions
Type
¶Name | Value | Brief |
---|---|---|
Type_None |
_ | |
Type_Bool |
b | |
Type_Int8 |
c | |
Type_UInt8 |
C | |
Type_Void |
v | |
Type_Int16 |
w | |
Type_UInt16 |
W | |
Type_Int32 |
i | |
Type_UInt32 |
I | |
Type_Int64 |
l | |
Type_UInt64 |
L | |
Type_Float |
f | |
Type_Double |
d | |
Type_String |
s | |
Type_List |
[ | |
Type_List_End |
] | |
Type_Map |
{ | |
Type_Map_End |
} | |
Type_Tuple |
( | |
Type_Tuple_End |
) | |
Type_Dynamic |
m | |
Type_Raw |
r | |
Type_Pointer |
* | |
Type_Object |
o | |
Type_VarArgs |
# | |
Type_KwArgs |
~ | |
Type_Unknown |
X |
Signature
()Signature
(const char* signature)Signature
(const std::string& signature)isValid
() consthasChildren
() constchildren
() consttype
() constannotation
() consttoData
() consttoPrettySignature
() consttoString
() constisConvertibleTo
(const Signature& b) constqi::Signature::
Signature
()¶qi::Signature::
Signature
(const char* signature)¶qi::Signature::
Signature
(const std::string& signature)¶qi::Signature::
isValid
() const
¶qi::Signature::
hasChildren
() const
¶qi::Signature::
children
() const
¶qi::Signature::
annotation
() const
¶qi::Signature::
toData
() const
¶Encode the signature in a plain struct, suitable for further serialization. [typeString, childrenList, annotationString ]
qi::Signature::
toPrettySignature
() const
¶qi::Signature::
toString
() const
¶qi::Signature::
isConvertibleTo
(const Signature& b) const
¶Brief:
Returns: | 0 if conversion is impossible, or a score in ]0,1] indicating the amount of type mismatch (the closer signatures are the bigger) |
---|
Tell if arguments with this signature can be converted to b.
signatureSplit
makeTupleSignature(const std::vector<qi::AnyReference>& vgv, bool resolveDynamic = false, const std::string &name = std::string(), const std::vector<std::string>& names)
makeTupleSignature(const std::vector<TypeInterface*>& vgv, const std::string &name = std::string(), const std::vector<std::string>& names)
makeTupleSignature
(const qi::Signature& element)¶makeListSignature
makeVarArgsSignature
makeKwArgsSignature
makeMapSignature