15 #include "weakReferenceList.h" 16 #include "weakPointerToVoid.h" 37 Pointers::iterator pi;
38 for (pi = _pointers.begin(); pi != _pointers.end(); ++pi) {
39 (*pi)->mark_deleted();
60 bool inserted = _pointers.insert(ptv).second;
77 Pointers::iterator pi = _pointers.find(ptv);
78 bool valid = (pi != _pointers.end());
void add_reference(WeakPointerToVoid *ptv)
Intended to be called only by WeakPointerTo (or by any class implementing a weak reference-counting p...
This is the specialization of PointerToVoid for weak pointers.
void clear_reference(WeakPointerToVoid *ptv)
Intended to be called only by WeakPointerTo (or by any class implementing a weak reference-counting p...
~WeakReferenceList()
The destructor tells all of the owned references that we're gone.