Automatic Persistence, Method 1
  • Follow data structure pointers, find closure of all objects, store each object as a block of bytes.
  • When restoring the objects, build a conversion table, update all pointers (known locations).
  • The only safe method to update hidden pointers:
    • Overload operator new() so that it takes an obsolete object instead of raw memory.