Changeset 81795


Ignore:
Timestamp:
Dec 8, 2012, 3:58:14 PM (6 years ago)
Author:
Hartmut Kaiser
Message:

Spirit: More inspect fixes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/spirit/home/classic/iterator/multi_pass.hpp

    r44382 r81795  
    195195
    196196        // called to verify that everything is okay.
    197         void check() const
     197        void check_if_valid() const
    198198        {
    199199            if (buf_id != *shared_buf_id)
     
    227227        void destroy() {}
    228228        void swap(no_check&) {}
    229         void check() const {}
     229        void check_if_valid() const {}
    230230        void clear_queue() {}
    231231};
     
    10011001operator*() const
    10021002{
    1003     CHP::check();
     1003    CHP::check_if_valid();
    10041004    return SP::dereference(*this);
    10051005}
     
    10351035operator++()
    10361036{
    1037     CHP::check();
     1037    CHP::check_if_valid();
    10381038    SP::increment(*this);
    10391039    return *this;
  • trunk/libs/spirit/classic/doc/multi_pass.html

    r56351 r81795  
    249249<h4>CheckingPolicy</h4>
    250250<p> The CheckingPolicy must have the following interface:</p>
    251 <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>
     251<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>
    252252<a name="storagepolicy"></a>
    253253<h4>StoragePolicy</h4>
Note: See TracChangeset for help on using the changeset viewer.