InstanceTrackerSet class
(Shortest import: from brian2.core.tracking import InstanceTrackerSet)
- class brian2.core.tracking.InstanceTrackerSet[source]
Bases:
set
A
set
ofweakref.ref
to all existing objects of a certain class.Should not normally be directly used.
Methods
add
(value)Adds a
weakref.ref
to thevalue
remove
(value)Removes the
value
(which should be a weakref) if it is in the setDetails
- add(value)[source]
Adds a
weakref.ref
to thevalue