struct
Bindgen::TypeDatabase::MethodPattern
- Bindgen::TypeDatabase::MethodPattern
- Struct
- Value
- Object
Overview
An entry of TypeConfig#ignore_methods. Matches a method by:
- Its name, dropping every overload:
operator- - Its C++ signature, dropping that overload only:
operator-(const QDateTime &, const QDateTime &), withconstafter the parentheses for a const method. Spaces before*and&, and after commas, are normalized, sof(QString&,int*)works too. - A regular expression between slashes, matched against the signature
as
Parser::Method#signatureprints it:/^operator\*\(.*QVector3D/
Defined in:
bindgen/type_database.crConstant Summary
-
CALL_OPERATOR =
"operator()" -
The name of the call operator, whose parentheses don't open a parameter list:
operator()is a name,operator()(int)a signature.
Constructors
Class Method Summary
-
.normalize(signature : String) : String
Writes the signature like
Parser::Method#signaturedoes: One space before a run of*and&, none around parentheses,,between the arguments andconstafter them. -
.parameter_list_index(source : String) : Int32 | Nil
The index of the
(opening the parameter list of source, ornilfor a plain name.
Instance Method Summary
-
#matches?(method : Parser::Method) : Bool
Does method match this entry?
-
#source : String
The entry as configured.
-
#to_s(io : IO) : Nil
Same as
#inspect(io).
Constructor Detail
Class Method Detail
Writes the signature like Parser::Method#signature does: One space
before a run of * and &, none around parentheses, , between the
arguments and const after them.
The index of the ( opening the parameter list of source, or nil
for a plain name.