omnipy.data.snapshot
| CLASS | DESCRIPTION |
|---|---|
SnapshotHolder |
|
SnapshotWrapper |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
obj_getattr |
|
obj_setattr |
|
SnapshotHolder
Bases: WeakKeyRefContainer[HasContentT, IsSnapshotWrapper[HasContentT, ContentT]], Generic[HasContentT, ContentT]
Source code in src/omnipy/data/snapshot.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | |
__init__
all_are_empty
Source code in src/omnipy/data/snapshot.py
clear
delete_scheduled_deepcopy_content_ids
Source code in src/omnipy/data/snapshot.py
get
get_deepcopy_content_ids
get_deepcopy_content_ids() -> SetDeque[int]
get_deepcopy_content_ids_scheduled_for_deletion
get_deepcopy_content_ids_scheduled_for_deletion() -> SetDeque[int]
in_deepcopy_content_ids
schedule_deepcopy_content_ids_for_deletion
take_snapshot
take_snapshot(obj: HasContentT) -> None
Source code in src/omnipy/data/snapshot.py
take_snapshot_setup
SnapshotWrapper
dataclass
Bases: Generic[ObjContraT, ContentT]
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
differs_from |
|
taken_of_same_obj |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
id |
TYPE:
|
snapshot |
TYPE:
|
Source code in src/omnipy/data/snapshot.py
differs_from
differs_from(obj: ObjContraT) -> bool
taken_of_same_obj
taken_of_same_obj(obj: ObjContraT) -> bool