Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81795 - in trunk: boost/spirit/home/classic/iterator libs/spirit/classic/doc
From: hartmut.kaiser_at_[hidden]
Date: 2012-12-08 10:58:15


Author: hkaiser
Date: 2012-12-08 10:58:14 EST (Sat, 08 Dec 2012)
New Revision: 81795
URL: http://svn.boost.org/trac/boost/changeset/81795

Log:
Spirit: More inspect fixes
Text files modified:
   trunk/boost/spirit/home/classic/iterator/multi_pass.hpp | 8 ++++----
   trunk/libs/spirit/classic/doc/multi_pass.html | 2 +-
   2 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/spirit/home/classic/iterator/multi_pass.hpp
==============================================================================
--- trunk/boost/spirit/home/classic/iterator/multi_pass.hpp (original)
+++ trunk/boost/spirit/home/classic/iterator/multi_pass.hpp 2012-12-08 10:58:14 EST (Sat, 08 Dec 2012)
@@ -194,7 +194,7 @@
         }
 
         // called to verify that everything is okay.
- void check() const
+ void check_if_valid() const
         {
             if (buf_id != *shared_buf_id)
             {
@@ -226,7 +226,7 @@
         no_check(no_check const&) {}
         void destroy() {}
         void swap(no_check&) {}
- void check() const {}
+ void check_if_valid() const {}
         void clear_queue() {}
 };
 
@@ -1000,7 +1000,7 @@
 multi_pass<InputT, InputPolicy, OwnershipPolicy, CheckingPolicy, StoragePolicy>::
 operator*() const
 {
- CHP::check();
+ CHP::check_if_valid();
     return SP::dereference(*this);
 }
 
@@ -1034,7 +1034,7 @@
 multi_pass<InputT, InputPolicy, OwnershipPolicy, CheckingPolicy, StoragePolicy>::
 operator++()
 {
- CHP::check();
+ CHP::check_if_valid();
     SP::increment(*this);
     return *this;
 }

Modified: trunk/libs/spirit/classic/doc/multi_pass.html
==============================================================================
--- trunk/libs/spirit/classic/doc/multi_pass.html (original)
+++ trunk/libs/spirit/classic/doc/multi_pass.html 2012-12-08 10:58:14 EST (Sat, 08 Dec 2012)
@@ -248,7 +248,7 @@
 <a name="checkingpolicy"></a>
 <h4>CheckingPolicy</h4>
 <p> The CheckingPolicy must have the following interface:</p>
-<pre> <code><span class="keyword">class </span><span class="identifier">my_check<br> </span><span class="special">{<br> </span><span class="keyword">protected</span><span class="special">:<br><br> </span><span class="identifier">my_check</span><span class="special">();<br> </span><span class="identifier">my_check</span><span class="special">(</span><span class="identifier">my_check </span><span class="keyword">const</span><span class="special">&amp; </span><span class="identifier">x</span><span class="special">);<br> </span><span class="keyword">void </span><span class="identifier">destroy</span><span class="special">();<br> </span><span class="keyword">void </span><span class="identifier">swap</span><span class="special">(</span><span class="identifier">my_check</span><span class="special">&amp; </span><span class="identifier">x</span><span class="special">);<br> </span><span class="comment">// check should make sure that this iterator is valid<br> </span>
<span class="keyword">void </span><span class="identifier">check</span><span class="special">() </span><span class="keyword">const</span><span class="special">;<br> </span><span class="keyword">void </span><span class="identifier">clear_queue</span><span class="special">();<br> </span><span class="special">};<br></span></code></pre>
+<pre> <code><span class="keyword">class </span><span class="identifier">my_check<br> </span><span class="special">{<br> </span><span class="keyword">protected</span><span class="special">:<br><br> </span><span class="identifier">my_check</span><span class="special">();<br> </span><span class="identifier">my_check</span><span class="special">(</span><span class="identifier">my_check </span><span class="keyword">const</span><span class="special">&amp; </span><span class="identifier">x</span><span class="special">);<br> </span><span class="keyword">void </span><span class="identifier">destroy</span><span class="special">();<br> </span><span class="keyword">void </span><span class="identifier">swap</span><span class="special">(</span><span class="identifier">my_check</span><span class="special">&amp; </span><span class="identifier">x</span><span class="special">);<br> </span><span class="comment">// check should make sure that this iterator is valid<br> </span>
<span class="keyword">void </span><span class="identifier">check_if_valid</span><span class="special">() </span><span class="keyword">const</span><span class="special">;<br> </span><span class="keyword">void </span><span class="identifier">clear_queue</span><span class="special">();<br> </span><span class="special">};<br></span></code></pre>
 <a name="storagepolicy"></a>
 <h4>StoragePolicy</h4>
 <p> A StoragePolicy must have the following interface:</p>


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