1Storm::LiveObjects::ScoUpsee(r3)Contributed Perl DocumenSttaotrimo:n:LiveObjects::Scope(3)
2
3
4

NAME

6       Storm::LiveObjects::Scope - Scope helper object
7

SYNOPSIS

9           {
10               my $scope = $storm->new_scope;
11
12               ... do work on objects ...
13           }
14

DESCRIPTION

16       Live object scopes exist in order to ensure objects don't die too soon
17       if the only other references to them are weak.
18
19       When scopes are destroyed the refcounts of the objects they refer to go
20       down, and the parent scope is replaced in the live object set.
21

METHODS

23       push
24           Adds objects or entries, increasing their reference count.
25
26       clear
27           Clears the objects from the scope object.
28

SEE ALSO

30       Modified from code in KiokuDB::LiveOBjects::Scope by Yuval Kogman.
31
32
33
34perl v5.30.0                      2019-07-26      Storm::LiveObjects::Scope(3)
Impressum