diff options
| author | Mike Buland <mbuland@penny-arcade.com> | 2018-01-18 16:08:24 -0800 |
|---|---|---|
| committer | Mike Buland <mbuland@penny-arcade.com> | 2018-01-18 16:08:24 -0800 |
| commit | 516fa9045af1e9c85ce524535d0ea5bc395e86cb (patch) | |
| tree | 482ceb92494c3770d12b91a511f105c304025fa9 /src/stable | |
| parent | ea96e4decaa23fc8ddfb528d4851751ec9496490 (diff) | |
| download | libbu++-516fa9045af1e9c85ce524535d0ea5bc395e86cb.tar.gz libbu++-516fa9045af1e9c85ce524535d0ea5bc395e86cb.tar.bz2 libbu++-516fa9045af1e9c85ce524535d0ea5bc395e86cb.tar.xz libbu++-516fa9045af1e9c85ce524535d0ea5bc395e86cb.zip | |
Made json much more helpful. Fixed array iterators.
Diffstat (limited to 'src/stable')
| -rw-r--r-- | src/stable/array.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/stable/array.h b/src/stable/array.h index a662705..8c17cc4 100644 --- a/src/stable/array.h +++ b/src/stable/array.h | |||
| @@ -362,6 +362,18 @@ namespace Bu | |||
| 362 | long iPos; | 362 | long iPos; |
| 363 | 363 | ||
| 364 | public: | 364 | public: |
| 365 | iterator() : | ||
| 366 | src( NULL ), | ||
| 367 | iPos( -1 ) | ||
| 368 | { | ||
| 369 | } | ||
| 370 | |||
| 371 | iterator( const iterator &rSrc ) : | ||
| 372 | src( rSrc.src ), | ||
| 373 | iPos( rSrc.iPos ) | ||
| 374 | { | ||
| 375 | } | ||
| 376 | |||
| 365 | iterator operator++( int ) | 377 | iterator operator++( int ) |
| 366 | { | 378 | { |
| 367 | if( iPos < 0 ) | 379 | if( iPos < 0 ) |
| @@ -480,11 +492,18 @@ namespace Bu | |||
| 480 | long iPos; | 492 | long iPos; |
| 481 | 493 | ||
| 482 | public: | 494 | public: |
| 483 | const_iterator( iterator &rSrc ) : | 495 | const_iterator( const iterator &rSrc ) : |
| 484 | src( rSrc.src ), | 496 | src( rSrc.src ), |
| 485 | iPos( rSrc.iPos ) | 497 | iPos( rSrc.iPos ) |
| 486 | { | 498 | { |
| 487 | } | 499 | } |
| 500 | |||
| 501 | const_iterator( const const_iterator &rSrc ) : | ||
| 502 | src( rSrc.src ), | ||
| 503 | iPos( rSrc.iPos ) | ||
| 504 | { | ||
| 505 | } | ||
| 506 | |||
| 488 | const_iterator operator++( int ) | 507 | const_iterator operator++( int ) |
| 489 | { | 508 | { |
| 490 | if( iPos < 0 ) | 509 | if( iPos < 0 ) |
