dlib.core.ownership

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.

Members

Classes

Owner
class Owner

Basic owner object class. When you delete it, all owned object are automatically deleted

Interfaces

Owned
interface Owned

Interface for objects that can be owned, but not own other objects

Meta

Authors

Timur Gafarov