Changeset 3142 for trunk/lib


Ignore:
Timestamp:
May 15, 2013, 2:01:38 PM (6 years ago)
Author:
cameron
Message:

Hide default constructors for iterators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_iterator.hpp

    r3140 r3142  
    207207{
    208208public:
    209         ForwardIterator() {}
    210 
    211209        ForwardIterator(bitblock_t * s): scanner(s)
    212210        {
     
    255253        }
    256254
     255protected:
     256        ForwardIterator() {}
     257
    257258private:
    258259        ForwardScanner<bitblock_t, scanblock_t> scanner;
     
    261262class BitBlockForwardIterator: public ForwardIterator<BitBlock, ScanWord> {
    262263public:
     264        BitBlockForwardIterator(BitBlock * s): ForwardIterator<BitBlock, ScanWord>(s){}
     265protected:
    263266        BitBlockForwardIterator(){}
    264         BitBlockForwardIterator(BitBlock * s): ForwardIterator<BitBlock, ScanWord>(s){}
    265267};
    266268
     
    270272{
    271273public:
    272         ReverseIterator() {}
    273274        ReverseIterator(BitBlock * s): scanner(s)
    274275        {
     
    315316        }
    316317
     318protected:
     319        ReverseIterator() {}
     320
     321        ReverseScanner<bitblock_t, scanblock_t> scanner;
     322};
     323
     324class BitBlockReverseIterator: public ReverseIterator<BitBlock, ScanWord> {
     325public:
     326        BitBlockReverseIterator(BitBlock * s): ReverseIterator<BitBlock, ScanWord>(s){}
    317327private:
    318         ReverseScanner<bitblock_t, scanblock_t> scanner;
    319 };
    320 
    321 class BitBlockReverseIterator: public ReverseIterator<BitBlock, ScanWord> {
    322 public:
    323328        BitBlockReverseIterator(){}
    324         BitBlockReverseIterator(BitBlock * s): ReverseIterator<BitBlock, ScanWord>(s){}
     329
    325330};
    326331
Note: See TracChangeset for help on using the changeset viewer.