First page Back Continue Last page Overview Graphics
Developing with MPQC V2
RefCount
RefCount base class has reference count member
Reference counted objects must be allocated on heap
“Smart pointers” must be used to keep correct reference count
Smart pointers will delete objects when reference count is decremented to zero
Smart pointers are thread safe
Smart pointers are now templates and defined as
- Ref<X> x;
- where X is a derivative of RefCount
Notes: