InstanceTrackerSet class¶
(Shortest import: from brian2.core.tracking import InstanceTrackerSet)
- class brian2.core.tracking.InstanceTrackerSet[source]¶
Bases:
setA
setofweakref.refto all existing objects of a certain class.Should not normally be directly used.
Methods
add(value)Adds a
weakref.refto thevalueremove(value)Removes the
value(which should be a weakref) if it is in the setDetails