Menu

Commit [r428]  Maximize  Restore  History

Added support for std::shared_ptr. In the process, had to distinguish

between magic mappings of objects containing pointers and the pointers
themselves by adding object_map and object_add methods to the
context. These allow the shared_ptr object's magic number to be keyed
by the address of the contained value while also allowing the
contained value to have its own magic number tied to the same address.
I have retro-fitted this solution to existing stlplus classes that
store a magic number for the object itself in the dump: smart_ptr,
simple_ptr, digraph and ntree.

andy_rushton 2011-01-12

changed /trunk/docs/persistence.html
changed /trunk/docs/persistent_stl.html
changed /trunk/docs/string_stl.html
changed /trunk/docs/strings.html
changed /trunk/persistence/persistent_contexts.cpp
changed /trunk/persistence/persistent_contexts.hpp
changed /trunk/persistence/persistent_digraph.tpp
changed /trunk/persistence/persistent_ntree.tpp
changed /trunk/persistence/persistent_shared_ptr.hpp
changed /trunk/persistence/persistent_shared_ptr.tpp
changed /trunk/persistence/persistent_simple_ptr.tpp
changed /trunk/persistence/persistent_smart_ptr.tpp
changed /trunk/persistence/persistent_xref.hpp
changed /trunk/persistence/persistent_xref.tpp
changed /trunk/tests/shared_ptr_test/shared_ptr_test1.dump
changed /trunk/tests/shared_ptr_test/shared_ptr_test2.dump
/trunk/docs/persistence.html Diff Switch to side-by-side view
Loading...
/trunk/docs/persistent_stl.html Diff Switch to side-by-side view
Loading...
/trunk/docs/string_stl.html Diff Switch to side-by-side view
Loading...
/trunk/docs/strings.html Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_contexts.cpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_contexts.hpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_digraph.tpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_ntree.tpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_shared_ptr.hpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_shared_ptr.tpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_simple_ptr.tpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_smart_ptr.tpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_xref.hpp Diff Switch to side-by-side view
Loading...
/trunk/persistence/persistent_xref.tpp Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB