PDA

View Full Version : Classes with Implicit Sharing



weaver4
14th January 2011, 21:26
I want to make my own class that has Implicit Sharing. I could not seem to find an example. Can someone give me a quick example or point me to a good one?

Thanks.

high_flyer
14th January 2011, 22:49
Why not first start with the docs?
http://doc.qt.nokia.com/4.7-snapshot/implicit-sharing.html

weaver4
15th January 2011, 01:27
I saw this, not what I am looking for.

I am looking for an example of how to write a class that has Implicit Sharing.

wysota
15th January 2011, 01:44
The example is here: QSharedDataPointer.

weaver4
15th January 2011, 02:21
Thanks, that is what I am looking for.

high_flyer
15th January 2011, 18:57
I am looking for an example of how to write a class that has Implicit Sharing.
Sometimes I really wonder...
The link I gave you explains how to write shared classes with Qt (or rather is the first steps to that) - isn't that the reason you are looking for an example? to see how this is done?
If you had at least skimmed through the first paragraph on the link I gave you, you would have come to the link wysota posted. :rolleyes: