![]() |
Home · Examples |
In this chapther, we will examine advanced use of the generator. What we teach is not necessary to map a C++ library sucessfully, but will help improving performance of the generated Java API. Also, one can tweak the API to give it a more Java like flavour, e.g., by removing the QNativePointers discussed earlier.
We have not implemented a complete example, but discuss these issues on a case by case basis.Value Types and Reference Counting
In Qt, we implement reference counting for our value types. ....Mapping C++ Operators
Java does not allow infix operators to be declared (it has a few built into the language, though). So when you have a C++ API using operators, you need to map theseMemory management and Object Ownership
Type Conversion Rules
The Power of Code Templates
Copyright © 2008 Trolltech
Trademarks