aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/blob.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unstable/blob.cpp47
1 files changed, 44 insertions, 3 deletions
diff --git a/src/unstable/blob.cpp b/src/unstable/blob.cpp
index e72e265..23987f3 100644
--- a/src/unstable/blob.cpp
+++ b/src/unstable/blob.cpp
@@ -499,6 +499,26 @@ Bu::Blob::iterator &Bu::Blob::iterator::operator--()
499 return *this; 499 return *this;
500} 500}
501 501
502Bu::Blob::iterator &Bu::Blob::iterator::operator+=( int32_t iDelta )
503{
504 if( bForward )
505 iIndex += iDelta;
506 else
507 iIndex -= iDelta;
508
509 return *this;
510}
511
512Bu::Blob::iterator &Bu::Blob::iterator::operator-=( int32_t iDelta )
513{
514 if( bForward )
515 iIndex -= iDelta;
516 else
517 iIndex += iDelta;
518
519 return *this;
520}
521
502Bu::Blob::iterator Bu::Blob::iterator::operator+( int32_t iDelta ) const 522Bu::Blob::iterator Bu::Blob::iterator::operator+( int32_t iDelta ) const
503{ 523{
504 return iterator( pBlob, iIndex + iDelta, bForward ); 524 return iterator( pBlob, iIndex + iDelta, bForward );
@@ -541,7 +561,8 @@ bool Bu::Blob::iterator::operator!=( const Bu::Blob::const_iterator &rRhs )
541 return pBlob != rRhs.pBlob || iIndex != rRhs.iIndex; 561 return pBlob != rRhs.pBlob || iIndex != rRhs.iIndex;
542} 562}
543 563
544Bu::Blob::iterator &Bu::Blob::iterator::operator=( Bu::Blob::iterator &rRhs ) 564Bu::Blob::iterator &Bu::Blob::iterator::operator=(
565 const Bu::Blob::iterator &rRhs )
545{ 566{
546 pBlob = rRhs.pBlob; 567 pBlob = rRhs.pBlob;
547 iIndex = rRhs.iIndex; 568 iIndex = rRhs.iIndex;
@@ -651,6 +672,26 @@ Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator--()
651 return *this; 672 return *this;
652} 673}
653 674
675Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator+=( int32_t iDelta )
676{
677 if( bForward )
678 iIndex += iDelta;
679 else
680 iIndex -= iDelta;
681
682 return *this;
683}
684
685Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator-=( int32_t iDelta )
686{
687 if( bForward )
688 iIndex -= iDelta;
689 else
690 iIndex += iDelta;
691
692 return *this;
693}
694
654Bu::Blob::const_iterator Bu::Blob::const_iterator::operator+( int32_t iDelta ) 695Bu::Blob::const_iterator Bu::Blob::const_iterator::operator+( int32_t iDelta )
655 const 696 const
656{ 697{
@@ -698,7 +739,7 @@ bool Bu::Blob::const_iterator::operator!=(
698} 739}
699 740
700Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator=( 741Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator=(
701 Bu::Blob::iterator &rRhs ) 742 const Bu::Blob::iterator &rRhs )
702{ 743{
703 pBlob = rRhs.pBlob; 744 pBlob = rRhs.pBlob;
704 iIndex = rRhs.iIndex; 745 iIndex = rRhs.iIndex;
@@ -708,7 +749,7 @@ Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator=(
708} 749}
709 750
710Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator=( 751Bu::Blob::const_iterator &Bu::Blob::const_iterator::operator=(
711 Bu::Blob::const_iterator &rRhs ) 752 const Bu::Blob::const_iterator &rRhs )
712{ 753{
713 pBlob = rRhs.pBlob; 754 pBlob = rRhs.pBlob;
714 iIndex = rRhs.iIndex; 755 iIndex = rRhs.iIndex;