Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71177 - sandbox/shifted_ptr/libs/smart_ptr/doc
From: phil_at_[hidden]
Date: 2011-04-10 18:49:17


Author: pbouchard
Date: 2011-04-10 18:49:16 EDT (Sun, 10 Apr 2011)
New Revision: 71177
URL: http://svn.boost.org/trac/boost/changeset/71177

Log:
* Added cyclic set diagram
Added:
   sandbox/shifted_ptr/libs/smart_ptr/doc/cyclicism.png (contents, props changed)
Text files modified:
   sandbox/shifted_ptr/libs/smart_ptr/doc/rationale.html | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Added: sandbox/shifted_ptr/libs/smart_ptr/doc/cyclicism.png
==============================================================================
Binary file. No diff available.

Modified: sandbox/shifted_ptr/libs/smart_ptr/doc/rationale.html
==============================================================================
--- sandbox/shifted_ptr/libs/smart_ptr/doc/rationale.html (original)
+++ sandbox/shifted_ptr/libs/smart_ptr/doc/rationale.html 2011-04-10 18:49:16 EDT (Sun, 10 Apr 2011)
@@ -84,7 +84,12 @@
   
   <p>Therefore whenever a <i>set</i> counter finds out the number of <i>shifted_ptr&#60;T&#62;</i> referencing it to be zero, the deallocation of each memory block composing
   the <i>set</i> is enforced. Thus whether the <i>set</i> was composed of memory blocks referencing each other in a cyclic way or not, all of them will be subject to
- destruction and deallocation indifferent from the cyclicism problem presented by the reference counters.</p>
+ destruction and deallocation indifferent from the cyclicism problem presented by the reference counters. As we can see in the following example, the <i>set</i> counter reaches
+ 0 and consequently every elements composing the <i>set</i> will be destructed and deallocated:</p>
+
+ <center>
+ <img src="cyclicism.png"/>
+ </center>
 
   <h2><a name="initialization" id="initialization"></a>Initialization</h2>
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk