summaryrefslogtreecommitdiffstats
path: root/doc/html/qmap-h.html
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-06 12:45:31 +0900
committerMichele Calgaro <[email protected]>2023-09-07 16:28:40 +0900
commit440483234fd5d8f29517d9c84b4227db80a90361 (patch)
treee7c53fdaebe221c11ef73428c02cd4fcb23e740e /doc/html/qmap-h.html
parent0c8091f80e1c2bd853e8850f2e6300c055471382 (diff)
downloadtqt3-440483234fd5d8f29517d9c84b4227db80a90361.tar.gz
tqt3-440483234fd5d8f29517d9c84b4227db80a90361.zip
Replace various Q_* and QT_* defines with TQ_* and TQT_*
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 926102a455014e6ab308aaced19e32eed7ed4414)
Diffstat (limited to 'doc/html/qmap-h.html')
-rw-r--r--doc/html/qmap-h.html64
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/html/qmap-h.html b/doc/html/qmap-h.html
index 42ccd626b..805efb03f 100644
--- a/doc/html/qmap-h.html
+++ b/doc/html/qmap-h.html
@@ -202,7 +202,7 @@ public:
};
template &lt;class K, class T&gt;
-Q_INLINE_TEMPLATES int TQMapIterator&lt;K,T&gt;::inc()
+TQ_INLINE_TEMPLATES int TQMapIterator&lt;K,T&gt;::inc()
{
TQMapNodeBase* tmp = node;
if ( tmp-&gt;right ) {
@@ -223,7 +223,7 @@ Q_INLINE_TEMPLATES int TQMapIterator&lt;K,T&gt;::inc()
}
template &lt;class K, class T&gt;
-Q_INLINE_TEMPLATES int TQMapIterator&lt;K,T&gt;::dec()
+TQ_INLINE_TEMPLATES int TQMapIterator&lt;K,T&gt;::dec()
{
TQMapNodeBase* tmp = node;
if (tmp-&gt;color == TQMapNodeBase::Red &amp;&amp;
@@ -318,7 +318,7 @@ public:
};
template &lt;class K, class T&gt;
-Q_INLINE_TEMPLATES int TQMapConstIterator&lt;K,T&gt;::inc()
+TQ_INLINE_TEMPLATES int TQMapConstIterator&lt;K,T&gt;::inc()
{
TQMapNodeBase* tmp = node;
if ( tmp-&gt;right ) {
@@ -339,7 +339,7 @@ Q_INLINE_TEMPLATES int TQMapConstIterator&lt;K,T&gt;::inc()
}
template &lt;class K, class T&gt;
-Q_INLINE_TEMPLATES int TQMapConstIterator&lt;K,T&gt;::dec()
+TQ_INLINE_TEMPLATES int TQMapConstIterator&lt;K,T&gt;::dec()
{
TQMapNodeBase* tmp = node;
if (tmp-&gt;color == TQMapNodeBase::Red &amp;&amp;
@@ -467,14 +467,14 @@ protected:
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES TQMapPrivate&lt;Key,T&gt;::TQMapPrivate() {
+TQ_INLINE_TEMPLATES TQMapPrivate&lt;Key,T&gt;::TQMapPrivate() {
header = new Node;
header-&gt;color = TQMapNodeBase::Red; // Mark the header
header-&gt;parent = 0;
header-&gt;left = header-&gt;right = header;
}
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES TQMapPrivate&lt;Key,T&gt;::TQMapPrivate( const TQMapPrivate&lt; Key, T &gt;* _map ) : TQMapPrivateBase( _map ) {
+TQ_INLINE_TEMPLATES TQMapPrivate&lt;Key,T&gt;::TQMapPrivate( const TQMapPrivate&lt; Key, T &gt;* _map ) : TQMapPrivateBase( _map ) {
header = new Node;
header-&gt;color = TQMapNodeBase::Red; // Mark the header
if ( _map-&gt;header-&gt;parent == 0 ) {
@@ -489,7 +489,7 @@ Q_INLINE_TEMPLATES TQMapPrivate&lt;Key,T&gt;::TQMapPrivate( const TQMapPrivate&l
}
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr TQMapPrivate&lt;Key,T&gt;::copy( Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr p )
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr TQMapPrivate&lt;Key,T&gt;::copy( TQ_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr p )
{
if ( !p )
return 0;
@@ -511,7 +511,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr TQMapPrivate&lt
}
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES void TQMapPrivate&lt;Key,T&gt;::clear()
+TQ_INLINE_TEMPLATES void TQMapPrivate&lt;Key,T&gt;::clear()
{
clear( (NodePtr)(header-&gt;parent) );
header-&gt;color = TQMapNodeBase::Red;
@@ -521,7 +521,7 @@ Q_INLINE_TEMPLATES void TQMapPrivate&lt;Key,T&gt;::clear()
}
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES void TQMapPrivate&lt;Key,T&gt;::clear( Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr p )
+TQ_INLINE_TEMPLATES void TQMapPrivate&lt;Key,T&gt;::clear( TQ_TYPENAME TQMapPrivate&lt;Key,T&gt;::NodePtr p )
{
while ( p != 0 ) {
clear( (NodePtr)p-&gt;right );
@@ -532,7 +532,7 @@ Q_INLINE_TEMPLATES void TQMapPrivate&lt;Key,T&gt;::clear( Q_TYPENAME TQMapPrivat
}
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::ConstIterator TQMapPrivate&lt;Key,T&gt;::find(const Key&amp; k) const
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate&lt;Key,T&gt;::ConstIterator TQMapPrivate&lt;Key,T&gt;::find(const Key&amp; k) const
{
TQMapNodeBase* y = header; // Last node
TQMapNodeBase* x = header-&gt;parent; // Root node.
@@ -555,7 +555,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::ConstIterator TQMapPriv
}
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::Iterator TQMapPrivate&lt;Key,T&gt;::insertSingle( const Key&amp; k )
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate&lt;Key,T&gt;::Iterator TQMapPrivate&lt;Key,T&gt;::insertSingle( const Key&amp; k )
{
// Search correct position in the tree
TQMapNodeBase* y = header;
@@ -586,7 +586,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::Iterator TQMapPrivate&l
template &lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::Iterator TQMapPrivate&lt;Key,T&gt;::insert( TQMapNodeBase* x, TQMapNodeBase* y, const Key&amp; k )
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMapPrivate&lt;Key,T&gt;::Iterator TQMapPrivate&lt;Key,T&gt;::insert( TQMapNodeBase* x, TQMapNodeBase* y, const Key&amp; k )
{
NodePtr z = new Node( k );
if (y == header || x != 0 || k &lt; key(y) ) {
@@ -612,15 +612,15 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMapPrivate&lt;Key,T&gt;::Iterator TQMapPrivate&l
#ifdef QT_CHECK_RANGE
# if !defined( TQT_NO_DEBUG ) &amp;&amp; defined( QT_CHECK_MAP_RANGE )
-# define QT_CHECK_INVALID_MAP_ELEMENT if ( empty() ) tqWarning( "TQMap: Warning invalid element" )
-# define QT_CHECK_INVALID_MAP_ELEMENT_FATAL Q_ASSERT( !empty() );
+# define TQT_CHECK_INVALID_MAP_ELEMENT if ( empty() ) tqWarning( "TQMap: Warning invalid element" )
+# define TQT_CHECK_INVALID_MAP_ELEMENT_FATAL Q_ASSERT( !empty() );
# else
-# define QT_CHECK_INVALID_MAP_ELEMENT
-# define QT_CHECK_INVALID_MAP_ELEMENT_FATAL
+# define TQT_CHECK_INVALID_MAP_ELEMENT
+# define TQT_CHECK_INVALID_MAP_ELEMENT_FATAL
# endif
#else
-# define QT_CHECK_INVALID_MAP_ELEMENT
-# define QT_CHECK_INVALID_MAP_ELEMENT_FATAL
+# define TQT_CHECK_INVALID_MAP_ELEMENT
+# define TQT_CHECK_INVALID_MAP_ELEMENT_FATAL
#endif
template &lt;class T&gt; class TQDeepCopy;
@@ -670,7 +670,7 @@ public:
TQMap( const std::map&lt;Key,T&gt;&amp; m )
{
sh = new TQMapPrivate&lt;Key,T&gt;;
- Q_TYPENAME std::map&lt;Key,T&gt;::const_iterator it = m.begin();
+ TQ_TYPENAME std::map&lt;Key,T&gt;::const_iterator it = m.begin();
for ( ; it != m.end(); ++it ) {
value_type p( (*it).first, (*it).second );
insert( p );
@@ -687,7 +687,7 @@ public:
TQMap&lt;Key,T&gt;&amp; operator= ( const std::map&lt;Key,T&gt;&amp; m )
{
clear();
- Q_TYPENAME std::map&lt;Key,T&gt;::const_iterator it = m.begin();
+ TQ_TYPENAME std::map&lt;Key,T&gt;::const_iterator it = m.begin();
for ( ; it != m.end(); ++it ) {
value_type p( (*it).first, (*it).second );
insert( p );
@@ -737,7 +737,7 @@ public:
const_iterator find ( const Key&amp; k ) const { return sh-&gt;find( k ); }
const T&amp; operator[] ( const Key&amp; k ) const
- { QT_CHECK_INVALID_MAP_ELEMENT; return sh-&gt;find( k ).data(); }
+ { TQT_CHECK_INVALID_MAP_ELEMENT; return sh-&gt;find( k ).data(); }
bool contains ( const Key&amp; k ) const
{ return find( k ) != end(); }
//{ return sh-&gt;find( k ) != ((const Priv*)sh)-&gt;end(); }
@@ -785,7 +785,7 @@ private:
};
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES TQMap&lt;Key,T&gt;&amp; TQMap&lt;Key,T&gt;::operator= ( const TQMap&lt;Key,T&gt;&amp; m )
+TQ_INLINE_TEMPLATES TQMap&lt;Key,T&gt;&amp; TQMap&lt;Key,T&gt;::operator= ( const TQMap&lt;Key,T&gt;&amp; m )
{
m.sh-&gt;ref();
if ( sh-&gt;deref() )
@@ -795,7 +795,7 @@ Q_INLINE_TEMPLATES TQMap&lt;Key,T&gt;&amp; TQMap&lt;Key,T&gt;::operator= ( const
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMap&lt;Key,T&gt;::insert_pair TQMap&lt;Key,T&gt;::insert( const Q_TYPENAME TQMap&lt;Key,T&gt;::value_type&amp; x )
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMap&lt;Key,T&gt;::insert_pair TQMap&lt;Key,T&gt;::insert( const TQ_TYPENAME TQMap&lt;Key,T&gt;::value_type&amp; x )
{
detach();
size_type n = size();
@@ -809,7 +809,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMap&lt;Key,T&gt;::insert_pair TQMap&lt;Key,T&gt;
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::erase( const Key&amp; k )
+TQ_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::erase( const Key&amp; k )
{
detach();
iterator it( sh-&gt;find( k ).node );
@@ -818,7 +818,7 @@ Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::erase( const Key&amp; k )
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMap&lt;Key,T&gt;::size_type TQMap&lt;Key,T&gt;::count( const Key&amp; k ) const
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMap&lt;Key,T&gt;::size_type TQMap&lt;Key,T&gt;::count( const Key&amp; k ) const
{
const_iterator it( sh-&gt;find( k ).node );
if ( it != end() ) {
@@ -833,7 +833,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMap&lt;Key,T&gt;::size_type TQMap&lt;Key,T&gt;::
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES T&amp; TQMap&lt;Key,T&gt;::operator[] ( const Key&amp; k )
+TQ_INLINE_TEMPLATES T&amp; TQMap&lt;Key,T&gt;::operator[] ( const Key&amp; k )
{
detach();
TQMapNode&lt;Key,T&gt;* p = sh-&gt;find( k ).node;
@@ -843,7 +843,7 @@ Q_INLINE_TEMPLATES T&amp; TQMap&lt;Key,T&gt;::operator[] ( const Key&amp; k )
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::clear()
+TQ_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::clear()
{
if ( sh-&gt;count == 1 )
sh-&gt;clear();
@@ -854,7 +854,7 @@ Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::clear()
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES Q_TYPENAME TQMap&lt;Key,T&gt;::iterator TQMap&lt;Key,T&gt;::insert( const Key&amp; key, const T&amp; value, bool overwrite )
+TQ_INLINE_TEMPLATES TQ_TYPENAME TQMap&lt;Key,T&gt;::iterator TQMap&lt;Key,T&gt;::insert( const Key&amp; key, const T&amp; value, bool overwrite )
{
detach();
size_type n = size();
@@ -865,7 +865,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQMap&lt;Key,T&gt;::iterator TQMap&lt;Key,T&gt;::i
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::remove( const Key&amp; k )
+TQ_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::remove( const Key&amp; k )
{
detach();
iterator it( sh-&gt;find( k ).node );
@@ -874,7 +874,7 @@ Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::remove( const Key&amp; k )
}
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::detachInternal()
+TQ_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::detachInternal()
{
sh-&gt;deref(); sh = new TQMapPrivate&lt;Key,T&gt;( sh );
}
@@ -882,7 +882,7 @@ Q_INLINE_TEMPLATES void TQMap&lt;Key,T&gt;::detachInternal()
#ifndef TQT_NO_DATASTREAM
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES TQDataStream&amp; operator&gt;&gt;( TQDataStream&amp; s, TQMap&lt;Key,T&gt;&amp; m ) {
+TQ_INLINE_TEMPLATES TQDataStream&amp; operator&gt;&gt;( TQDataStream&amp; s, TQMap&lt;Key,T&gt;&amp; m ) {
m.clear();
TQ_UINT32 c;
s &gt;&gt; c;
@@ -898,7 +898,7 @@ Q_INLINE_TEMPLATES TQDataStream&amp; operator&gt;&gt;( TQDataStream&amp; s, TQMa
template&lt;class Key, class T&gt;
-Q_INLINE_TEMPLATES TQDataStream&amp; operator&lt;&lt;( TQDataStream&amp; s, const TQMap&lt;Key,T&gt;&amp; m ) {
+TQ_INLINE_TEMPLATES TQDataStream&amp; operator&lt;&lt;( TQDataStream&amp; s, const TQMap&lt;Key,T&gt;&amp; m ) {
s &lt;&lt; (TQ_UINT32)m.size();
TQMapConstIterator&lt;Key,T&gt; it = m.begin();
for( ; it != m.end(); ++it )