CopperSpice Overview  1.5.1

QRefCount has been back ported to CopperSpice.

This is an internal class and only available inside the CsCore library. QRefCount is a private class used by other classes to implement reference counting for shared data.

QRefCount is used by QString to allow read only QStringData objects. Storing the data in read only memory allows the data to be initialized at compile time, which is faster and more efficient. QRefCount is a class which, in the case of QString, tracks how many QStrings are referring to the same data. This improves speed as the physical data in the QString may not need to be copied multiple times as the QRefCount is incremented or decremented.