Changeset 1677


Ignore:
Timestamp:
Nov 13, 2011, 12:30:58 PM (6 years ago)
Author:
ksherdy
Message:

Refactored reset().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/bitblock_scan.hpp

    r1676 r1677  
    3737
    3838        ForwardScanner(): Scanner<bitblock_t, scanblock_t>(){}
    39         ForwardScanner(bitblock_t * s): Scanner<bitblock_t, scanblock_t>(s, 0, 0, *((scanblock_t *)s)){}
     39        ForwardScanner(bitblock_t * s) {
     40                reset(s);
     41        }
    4042
    4143        IDISA_ALWAYS_INLINE void reset(bitblock_t * s) {
     
    7476public:
    7577        ReverseScanner(): Scanner<bitblock_t, scanblock_t>(){}
    76         ReverseScanner(bitblock_t * s): Scanner<bitblock_t, scanblock_t>(s, 0, BLOCK_COUNT, *((scanblock_t *)s + (BLOCK_COUNT-1))){}
    77 
     78        ReverseScanner(bitblock_t * s) {
     79                reset(s);
     80        }
    7881        IDISA_ALWAYS_INLINE void reset(bitblock_t * s) {
    7982                this->strm = s;
Note: See TracChangeset for help on using the changeset viewer.