diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-13 17:43:39 -0600 |
commit | 359640943bcf155faa9a067dde9e00a123276290 (patch) | |
tree | fb3d55ea5e18949042fb0064123fb73d2b1eb932 /doc/html/qvaluevector-h.html | |
parent | a829bcdc533e154000803d517200d32fe762e85c (diff) | |
download | tqt3-359640943bcf155faa9a067dde9e00a123276290.tar.gz tqt3-359640943bcf155faa9a067dde9e00a123276290.zip |
Automated update from Qt3
Diffstat (limited to 'doc/html/qvaluevector-h.html')
-rw-r--r-- | doc/html/qvaluevector-h.html | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/html/qvaluevector-h.html b/doc/html/qvaluevector-h.html index 70d71c386..a51eb524c 100644 --- a/doc/html/qvaluevector-h.html +++ b/doc/html/qvaluevector-h.html @@ -164,9 +164,9 @@ Q_INLINE_TEMPLATES TQValueVectorPrivate<T>::TQValueVectorPrivate( const TQ finish = start + i; end = start + i; #if defined(__xlC__) && __xlC__ < 0x400 // xlC 3.6 confused by const - qCopy( (pointer)x.start, (pointer)x.finish, start ); + tqCopy( (pointer)x.start, (pointer)x.finish, start ); #else - qCopy( x.start, x.finish, start ); + tqCopy( x.start, x.finish, start ); #endif } else { start = 0; @@ -197,9 +197,9 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate<T>::insert( pointer pos, cons const size_t offset = pos - start; pointer newStart = new T[n]; pointer newFinish = newStart + offset; - qCopy( start, pos, newStart ); + tqCopy( start, pos, newStart ); *newFinish = x; - qCopy( pos, finish, ++newFinish ); + tqCopy( pos, finish, ++newFinish ); delete[] start; start = newStart; finish = newStart + lastSize + 1; @@ -214,31 +214,31 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate<T>::insert( pointer pos, size const size_t elems_after = finish - pos; pointer old_finish = finish; if ( elems_after > n ) { - qCopy( finish - n, finish, finish ); + tqCopy( finish - n, finish, finish ); finish += n; - qCopyBackward( pos, old_finish - n, old_finish ); - qFill( pos, pos + n, x ); + tqCopyBackward( pos, old_finish - n, old_finish ); + tqFill( pos, pos + n, x ); } else { pointer filler = finish; size_t i = n - elems_after; for ( ; i > 0; --i, ++filler ) *filler = x; finish += n - elems_after; - qCopy( pos, old_finish, finish ); + tqCopy( pos, old_finish, finish ); finish += elems_after; - qFill( pos, old_finish, x ); + tqFill( pos, old_finish, x ); } } else { // not enough room const size_t lastSize = size(); const size_t len = lastSize + TQMAX( lastSize, n ); pointer newStart = new T[len]; - pointer newFinish = qCopy( start, pos, newStart ); + pointer newFinish = tqCopy( start, pos, newStart ); // fill up inserted space size_t i = n; for ( ; i > 0; --i, ++newFinish ) *newFinish = x; - newFinish = qCopy( pos, finish, newFinish ); + newFinish = tqCopy( pos, finish, newFinish ); delete[] start; start = newStart; finish = newFinish; @@ -260,7 +260,7 @@ template <class T> Q_INLINE_TEMPLATES Q_TYPENAME TQValueVectorPrivate<T>::pointer TQValueVectorPrivate<T>::growAndCopy( size_t n, pointer s, pointer f ) { pointer newStart = new T[n]; - qCopy( s, f, newStart ); + tqCopy( s, f, newStart ); delete[] start; return newStart; } @@ -302,13 +302,13 @@ public: TQValueVector( std::vector<T>& v ) // ### remove in 4.0 { sh = new TQValueVectorPrivate<T>( v.size() ); - qCopy( v.begin(), v.end(), begin() ); + tqCopy( v.begin(), v.end(), begin() ); } TQValueVector( const std::vector<T>& v ) { sh = new TQValueVectorPrivate<T>( v.size() ); - qCopy( v.begin(), v.end(), begin() ); + tqCopy( v.begin(), v.end(), begin() ); } #endif @@ -330,7 +330,7 @@ public: { clear(); resize( v.size() ); - qCopy( v.begin(), v.end(), begin() ); + tqCopy( v.begin(), v.end(), begin() ); return *this; } #endif @@ -475,7 +475,7 @@ public: { detach(); if ( pos + 1 != end() ) - qCopy( pos + 1, sh->finish, pos ); + tqCopy( pos + 1, sh->finish, pos ); --sh->finish; return pos; } @@ -483,7 +483,7 @@ public: iterator erase( iterator first, iterator last ) { detach(); - qCopy( last, sh->finish, first ); + tqCopy( last, sh->finish, first ); sh->finish = sh->finish - ( last - first ); return first; } @@ -491,12 +491,12 @@ public: // ### remove in TQt 4.0 bool operator==( const TQValueVector<T>& x ) { - return size()==x.size() ? qEqual( constBegin(), constEnd(), x.begin()) : FALSE; + return size()==x.size() ? tqEqual( constBegin(), constEnd(), x.begin()) : FALSE; } bool operator==( const TQValueVector<T>& x ) const { - return size()==x.size() ? qEqual( begin(), end(), x.begin() ) : FALSE; + return size()==x.size() ? tqEqual( begin(), end(), x.begin() ) : FALSE; } typedef T ValueType; @@ -528,7 +528,7 @@ template <class T> Q_INLINE_TEMPLATES TQValueVector<T>::TQValueVector( size_type n, const T& val ) { sh = new TQValueVectorPrivate<T>( n ); - qFill( begin(), end(), val ); + tqFill( begin(), end(), val ); } template <class T> @@ -556,7 +556,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQValueVector<T>::iterator TQValueVector< } else { *sh->finish = *(sh->finish - 1); ++sh->finish; - qCopyBackward( pos, sh->finish - 2, sh->finish - 1 ); + tqCopyBackward( pos, sh->finish - 2, sh->finish - 1 ); *pos = x; } } |