Description:
Object ownership system similar to Delphi's. All classes deriving from Owner
can store references to objects implementing Owned interface (and other Owner
objects as well). When an owner is deleted, its owned objects are also deleted.
This module is not compatible with GC-collected objects. It can be used only with
dlib.core.memory. Using it with objects allocated any other way will cause application to crash.
Class-based object ownership system
Description: Object ownership system similar to Delphi's. All classes deriving from Owner can store references to objects implementing Owned interface (and other Owner objects as well). When an owner is deleted, its owned objects are also deleted.
This module is not compatible with GC-collected objects. It can be used only with dlib.core.memory. Using it with objects allocated any other way will cause application to crash.