Changeset 1679 for trunk


Ignore:
Timestamp:
Nov 13, 2011, 1:21:36 PM (8 years ago)
Author:
ksherdy
Message:

Added reset().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_iterator.hpp

    r1672 r1679  
    2121        ForwardIterator(bitblock_t * s): scanner(s)
    2222        {
     23                scanner.scan_to_next();
     24        }
     25
     26        void reset(bitblock_t * s)
     27        {
     28                scanner.reset(s);
    2329                scanner.scan_to_next();
    2430        }
     
    7783        }
    7884
     85        void reset(bitblock_t * s)
     86        {
     87                scanner.reset(s);
     88                scanner.scan_to_next();
     89        }
     90
    7991        // equal position and stream
    8092        bool operator==(const ReverseIterator& iter)
Note: See TracChangeset for help on using the changeset viewer.