path: root/overloaddata.h
Commit message (Collapse)AuthorAgeFilesLines
* 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 <>
* 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