[ fromfile: valueobject.xml id: valueobject ]
C++ types can be divided into two categories: value types and object types.
Any class that has a public
default constructor, copy constructor, and copy assignment operator is a value type.
Instances of object types, on the other hand, are typically more complex and maintain some sort of identity.
Object types are rarely copied (cloned).
If cloning is permitted, the operation is usually expensive and results in a new object (graph) that has a separate identity from the original.
The designers of QObject asserted an unequivocal "no-copy" policy by designating its assignment operator and copy constructor private
.
Generated: 2012-03-02 | © 2012 Alan Ezust and Paul Ezust. |