Context: |
Some cases of shared aggregation - n:1 association with shared ownership. An object is considered as member (with the obvious restrictions) by one or more other objects at once. |
||||
Challenge: |
To eliminate the shared resource exactly when no longer in use. |
||||
Skill: |
|||||
Participants: |
|
||||
Signature: |
Inside an existing n:1 hierarchy: Reference Count datum and interface added to Resource. Registration code added to Client. |
||||
Used by: |
Reference-Counting Smart Pointer, Reference-Counting Proxy. |
||||
Scope: |
Languages that do not support automatic garbage collection. (General:) control over a partial population. |