summaryrefslogtreecommitdiffstats
path: root/overloaddata.h
Commit message (Collapse)AuthorAgeFilesLines
* Shiboken generator code moved to the directory generator.Hugo Parente Lima2010-09-201-147/+0
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
* Generate correct python function definitions.renatofilho2010-09-151-1/+1
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Added methods to check if overloads contain any argument with default values.Marcelo Lira2010-06-171-0/+7
| | | | | | | | | | | The hasArgumentWithDefaultValue methods from OverloadData returns true if any argument in the overloads or in the single function passed has a default value assigned to it. A non-static version of this method uses the overloads described by the OverloadData object. Also added the method getArgumentsWithDefaultValues(func) to return a list of the function's arguments that have default values.
* Modified some methods on OverloadData to accept references to function lists.Marcelo Lira2010-06-171-3/+3
| | | | | The methods originally accept copies of AbstractMetaFunctionLists, now they use references instead.
* Added method to OverloadData to return the list of overloads without repetition.Marcelo Lira2010-06-151-0/+2
| | | | | | | The method OverloadData::overloadsWithoutRepetition() returns the overload list of the OverloadData object removing "almost" duplicated functions. For our purposes "foo()" and "foo()const" means the same, so the constant version is removed.
* Added previousOverloadData attribute to OverloadData, so we cna walk on ↵Hugo Lima2010-02-191-0/+2
| | | | overload data tree.
* Modified signature of OverloadData::addOverloadData.Marcelo Lira2010-02-081-1/+1
| | | | | Changed the second argument from AbstractMetaType to AbstractMetaArgument, this helps to get the correct type replacement information for arguments.
* Fixing sort overloadLauro Neto2010-02-081-1/+1
| | | | | | Now sorting OverloadData recursively Reviewer: Renato Filho <renato.filho@openbossa.org>
* Fixing includesLauro Neto2010-01-261-1/+1
| | | | Reviewed by Hugo Parent <hugo.lima@openbossa.org>
* Adds helpers to OverloadData to check for static and non-static methods.Marcelo Lira2010-01-191-1/+19
| | | | | | | OverloadDecisor received some new methods: hasStaticFunction, hasInstanceFunction and hasStaticAndInstanceFunctions. They are useful to check if an overload contains both static and non-static signatures.
* Adds OverloadData::hasAllowThread() method.Marcelo Lira2010-01-151-0/+3
| | | | | The method checks if any of the functions in OverloadData have allow-thread flag set to true.
* Adds OverloadData::hasVarargs() which says if there is a varargs argument ↵Marcelo Lira2009-12-181-0/+3
| | | | among the overloads.
* Added convenience method OverloadData::isSingleArgument(overloads).Marcelo Lira2009-11-261-0/+2
|
* Renamed OverloadData::hasDefaultValue to ↵Marcelo Lira2009-11-231-1/+3
| | | | | | | | | OverloadData::getFunctionWithDefaultValue and modified it to return a pointer to the actual AbstractMetaFunction with the default value (or NULL if it doesn't has the value), instead of just returning a boolean. The overload decisor writer makes use of this new behavior to get the correct function for a method call with default values.
* Added methods to OverloadData:Marcelo Lira2009-11-201-0/+11
| | | | | | | | | | * OverloadData* headOverloadData() const; Return the root OverloadData object for the current OverloadData. * QStringList returnTypes() const; Returns a list of the possible return types for the current OverloadData. * bool hasNonVoidReturnType() const; Returns true if any of the overloads for the current OverloadData has a return type different from void.
* OverloadData does not ignore arguments which modify types.Hugo Lima2009-11-161-1/+4
|
* Sorting overloads topologicallyLauro Neto2009-11-101-3/+2
| | | | | | | | Instead of using the current weight-based overload sorting, sort them topologically based on implicit conversions. Reviewed by Hugo Parente <hugo.lima@openbossa.org>
* added the method OverloadData::findNextArgWithDefault() which returnsMarcelo Lira2009-11-061-0/+2
| | | | | | | the nearest occurrence of an argument with a default value. this could be used when the overload has only one signature and some of the arguments ahead could have default values leading to more than one way of calling the method.
* improved OverloadData class to sort the alternative arguments puttingMarcelo Lira2009-10-301-2/+8
| | | | | | the primitive types first and moving down the wrapper objects with more implicit converversions; this ordering scheme is needed to avoid unnecessary (and sometimes wrong) conversions
* renamed PolymorphicData class to OverloadData, this should represent correctlyMarcelo Lira2009-09-021-0/+87
the class' function; other relative renamings were also performed