| 1 | /* |
| 2 | * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 | * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
| 8 | * |
| 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * 2. Redistributions in binary form must reproduce the above copyright |
| 12 | * notice, this list of conditions and the following disclaimer in the |
| 13 | * documentation and/or other materials provided with the distribution. |
| 14 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of |
| 15 | * its contributors may be used to endorse or promote products derived |
| 16 | * from this software without specific prior written permission. |
| 17 | * |
| 18 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
| 19 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 21 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 23 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | */ |
| 29 | |
| 30 | #ifndef WTF_Deque_h |
| 31 | #define WTF_Deque_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Deque.h:31:9`! |
| 32 | |
| 33 | // FIXME: Could move what Vector and Deque share into a separate file. |
| 34 | // Deque doesn't actually use Vector. |
| 35 | |
| 36 | #include "Vector.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h`/ |
| 37 | |
| 38 | namespace WTFcxx . . $ `<built-in>:467:9`! { |
| 39 | |
| 40 | template<typename T> class DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#; |
| 41 | template<typename T> class DequeIteratorcxx . . $ QTWTF/DequeIterator#; |
| 42 | template<typename T> class DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator#; |
| 43 | template<typename T> class DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator#; |
| 44 | template<typename T> class DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator#; |
| 45 | |
| 46 | template<typename T> |
| 47 | class Dequecxx . . $ QTWTF/Deque# : public FastAllocBasecxx . . $ QTWTF/FastAllocBase# { |
| 48 | public: |
| 49 | typedef DequeIteratorcxx . . $ QTWTF/DequeIterator#<T> iteratorcxx . . $ QTWTF/Deque#iterator#; |
| 50 | typedef DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator#<T> const_iteratorcxx . . $ QTWTF/Deque#const_iterator#; |
| 51 | typedef DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator#<T> reverse_iteratorcxx . . $ QTWTF/Deque#reverse_iterator#; |
| 52 | typedef DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator#<T> const_reverse_iteratorcxx . . $ QTWTF/Deque#const_reverse_iterator#; |
| 53 | |
| 54 | Dequecxx . . $ QTWTF/Deque#`Deque<T>`(49f6e7a06ebc5aa8).(); |
| 55 | Dequecxx . . $ QTWTF/Deque#`Deque<T>`(bbc8783a354d0a6b).(const Dequecxx . . $ QTWTF/Deque#<T>&); |
| 56 | Deque& operatorcxx . . $ QTWTF/Deque#`operator=`(71f26ecf15fef794).=(const Dequecxx . . $ QTWTF/Deque#<T>&); |
| 57 | ~cxx . . $ QTWTF/Deque#`~Deque<T>`(49f6e7a06ebc5aa8).Deque(); |
| 58 | |
| 59 | void swapcxx . . $ QTWTF/Deque#swap(edc6e9a9f4520fb8).(Dequecxx . . $ QTWTF/Deque#<T>&); |
| 60 | |
| 61 | size_t sizecxx . . $ QTWTF/Deque#size(fe4d2d262d4164a8).() const { return m_startcxx . . $ QTWTF/Deque#m_start. <= m_endcxx . . $ QTWTF/Deque#m_end. ? m_endcxx . . $ QTWTF/Deque#m_end. - m_startcxx . . $ QTWTF/Deque#m_start. : m_endcxx . . $ QTWTF/Deque#m_end. +cxx . . $ operator+(f3789794639247d3). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).() - m_startcxx . . $ QTWTF/Deque#m_start.; } |
| 62 | bool isEmptycxx . . $ QTWTF/Deque#isEmpty(50ce9a9e25b4a850).() const { return m_startcxx . . $ QTWTF/Deque#m_start. == m_endcxx . . $ QTWTF/Deque#m_end.; } |
| 63 | |
| 64 | iteratorcxx . . $ QTWTF/Deque#iterator# begincxx . . $ QTWTF/Deque#begin(c0f4bbbd3b7a5f5c).() { return iteratorcxx . . $ QTWTF/Deque#iterator#(this, m_startcxx . . $ QTWTF/Deque#m_start.); } |
| 65 | iteratorcxx . . $ QTWTF/Deque#iterator# endcxx . . $ QTWTF/Deque#end(c0f4bbbd3b7a5f5c).() { return iteratorcxx . . $ QTWTF/Deque#iterator#(this, m_endcxx . . $ QTWTF/Deque#m_end.); } |
| 66 | const_iteratorcxx . . $ QTWTF/Deque#const_iterator# begincxx . . $ QTWTF/Deque#begin(40eb0d490e72bf6c).() const { return const_iteratorcxx . . $ QTWTF/Deque#const_iterator#(this, m_startcxx . . $ QTWTF/Deque#m_start.); } |
| 67 | const_iteratorcxx . . $ QTWTF/Deque#const_iterator# endcxx . . $ QTWTF/Deque#end(40eb0d490e72bf6c).() const { return const_iteratorcxx . . $ QTWTF/Deque#const_iterator#(this, m_endcxx . . $ QTWTF/Deque#m_end.); } |
| 68 | reverse_iteratorcxx . . $ QTWTF/Deque#reverse_iterator# rbegincxx . . $ QTWTF/Deque#rbegin(1423bcfea48cd1ef).() { return reverse_iteratorcxx . . $ QTWTF/Deque#reverse_iterator#(this, m_endcxx . . $ QTWTF/Deque#m_end.); } |
| 69 | reverse_iteratorcxx . . $ QTWTF/Deque#reverse_iterator# rendcxx . . $ QTWTF/Deque#rend(1423bcfea48cd1ef).() { return reverse_iteratorcxx . . $ QTWTF/Deque#reverse_iterator#(this, m_startcxx . . $ QTWTF/Deque#m_start.); } |
| 70 | const_reverse_iteratorcxx . . $ QTWTF/Deque#const_reverse_iterator# rbegincxx . . $ QTWTF/Deque#rbegin(93588c8462e6c548).() const { return const_reverse_iteratorcxx . . $ QTWTF/Deque#const_reverse_iterator#(this, m_endcxx . . $ QTWTF/Deque#m_end.); } |
| 71 | const_reverse_iteratorcxx . . $ QTWTF/Deque#const_reverse_iterator# rendcxx . . $ QTWTF/Deque#rend(93588c8462e6c548).() const { return const_reverse_iteratorcxx . . $ QTWTF/Deque#const_reverse_iterator#(this, m_startcxx . . $ QTWTF/Deque#m_start.); } |
| 72 | |
| 73 | T& firstcxx . . $ QTWTF/Deque#first(19b2b6f17af048b).() { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_start != m_end); return m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()[m_startcxx . . $ QTWTF/Deque#m_start.]; } |
| 74 | const T& firstcxx . . $ QTWTF/Deque#first(ea465e50d690edfe).() const { ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_start != m_end); return m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()[m_startcxx . . $ QTWTF/Deque#m_start.]; } |
| 75 | |
| 76 | template<typename U> void appendcxx . . $ QTWTF/Deque#append(edcd8b2679e9bd1a).(const U&); |
| 77 | template<typename U> void prependcxx . . $ QTWTF/Deque#prepend(edcd8b2679e9bd1a).(const U&); |
| 78 | void removeFirstcxx . . $ QTWTF/Deque#removeFirst(49f6e7a06ebc5aa8).(); |
| 79 | void removecxx . . $ QTWTF/Deque#remove(f7d6e36bea5b91b2).(iteratorcxx . . $ QTWTF/Deque#iterator#&); |
| 80 | void removecxx . . $ QTWTF/Deque#remove(1f6575f1173cedbf).(const_iteratorcxx . . $ QTWTF/Deque#const_iterator#&); |
| 81 | |
| 82 | void clearcxx . . $ QTWTF/Deque#clear(49f6e7a06ebc5aa8).(); |
| 83 | |
| 84 | template<typename Predicate> |
| 85 | iteratorcxx . . $ QTWTF/Deque#iterator# findIfcxx . . $ QTWTF/Deque#findIf(866cb5c400bb2fc0).(Predicate&); |
| 86 | |
| 87 | private: |
| 88 | friend class DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>; |
| 89 | |
| 90 | typedef VectorBuffercxx . . $ QTWTF/VectorBuffer#<T, 0> Buffercxx . . $ QTWTF/Deque#Buffer#; |
| 91 | typedef VectorTypeOperationscxx . . $ QTWTF/VectorTypeOperations#<T> TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#; |
| 92 | typedef DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> IteratorBasecxx . . $ QTWTF/Deque#IteratorBase#; |
| 93 | |
| 94 | void removecxx . . $ QTWTF/Deque#remove(2c44cd906ae4e829).(size_t position); |
| 95 | void invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).(); |
| 96 | void destroyAllcxx . . $ QTWTF/Deque#destroyAll(49f6e7a06ebc5aa8).(); |
| 97 | void checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).() const; |
| 98 | void checkIndexValiditycxx . . $ QTWTF/Deque#checkIndexValidity(cf8bf0a838713cc4).(size_t) const; |
| 99 | void expandCapacityIfNeededcxx . . $ QTWTF/Deque#expandCapacityIfNeeded(49f6e7a06ebc5aa8).(); |
| 100 | void expandCapacitycxx . . $ QTWTF/Deque#expandCapacity(49f6e7a06ebc5aa8).(); |
| 101 | |
| 102 | size_t m_startcxx . . $ QTWTF/Deque#m_start.; |
| 103 | size_t m_endcxx . . $ QTWTF/Deque#m_end.; |
| 104 | Buffercxx . . $ QTWTF/Deque#Buffer# m_buffercxx . . $ QTWTF/Deque#m_buffer.; |
| 105 | #ifndef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 106 | mutable IteratorBase* m_iterators; |
| 107 | #endif |
| 108 | }; |
| 109 | |
| 110 | template<typename T> |
| 111 | class DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase# { |
| 112 | private: |
| 113 | typedef DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> Basecxx . . $ QTWTF/DequeIteratorBase#Base#; |
| 114 | |
| 115 | protected: |
| 116 | DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#`DequeIteratorBase<T>`(49f6e7a06ebc5aa8).(); |
| 117 | DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#`DequeIteratorBase<T>`(4a91e185bc00a415).(const Dequecxx . . $ QTWTF/Deque#<T>*, size_t); |
| 118 | DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#`DequeIteratorBase<T>`(a97a954fee5eee55).(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#&); |
| 119 | Basecxx . . $ QTWTF/DequeIteratorBase#Base#& operatorcxx . . $ QTWTF/DequeIteratorBase#`operator=`(6d48a1ff8086d0f0).=(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#&); |
| 120 | ~cxx . . $ QTWTF/DequeIteratorBase#`~DequeIteratorBase<T>`(49f6e7a06ebc5aa8).DequeIteratorBase(); |
| 121 | |
| 122 | void assigncxx . . $ QTWTF/DequeIteratorBase#assign(a97a954fee5eee55).(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#& other) { *this = other; } |
| 123 | |
| 124 | void incrementcxx . . $ QTWTF/DequeIteratorBase#increment(49f6e7a06ebc5aa8).(); |
| 125 | void decrementcxx . . $ QTWTF/DequeIteratorBase#decrement(49f6e7a06ebc5aa8).(); |
| 126 | |
| 127 | T* beforecxx . . $ QTWTF/DequeIteratorBase#before(5a2a78a048fb49a8).() const; |
| 128 | T* aftercxx . . $ QTWTF/DequeIteratorBase#after(5a2a78a048fb49a8).() const; |
| 129 | |
| 130 | bool isEqualcxx . . $ QTWTF/DequeIteratorBase#isEqual(3e1ca94b3d8d8643).(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#&) const; |
| 131 | |
| 132 | private: |
| 133 | void addToIteratorsListcxx . . $ QTWTF/DequeIteratorBase#addToIteratorsList(49f6e7a06ebc5aa8).(); |
| 134 | void removeFromIteratorsListcxx . . $ QTWTF/DequeIteratorBase#removeFromIteratorsList(49f6e7a06ebc5aa8).(); |
| 135 | void checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).() const; |
| 136 | void checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(27af8a3862f50f99).(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#&) const; |
| 137 | |
| 138 | Dequecxx . . $ QTWTF/Deque#<T>* m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.; |
| 139 | size_t m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.; |
| 140 | |
| 141 | friend class Dequecxx . . $ QTWTF/Deque#<T>; |
| 142 | |
| 143 | #ifndef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 144 | mutable DequeIteratorBase* m_next; |
| 145 | mutable DequeIteratorBase* m_previous; |
| 146 | #endif |
| 147 | }; |
| 148 | |
| 149 | template<typename T> |
| 150 | class DequeIteratorcxx . . $ QTWTF/DequeIterator# : public DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> { |
| 151 | private: |
| 152 | typedef DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> Basecxx . . $ QTWTF/DequeIterator#Base#; |
| 153 | typedef DequeIteratorcxx . . $ QTWTF/DequeIterator#<T> Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#; |
| 154 | |
| 155 | public: |
| 156 | DequeIteratorcxx . . $ QTWTF/DequeIterator#`DequeIterator<T>`(2cf383b2d477e34).(Dequecxx . . $ QTWTF/Deque#<T>* deque, size_t index) : Basecxx . . $ QTWTF/DequeIterator#Base#(deque, index) { } |
| 157 | |
| 158 | DequeIteratorcxx . . $ QTWTF/DequeIterator#`DequeIterator<T>`(a05a2aff08effe46).(const Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#& other) : Basecxx . . $ QTWTF/DequeIterator#Base#(other) { } |
| 159 | DequeIterator& operatorcxx . . $ QTWTF/DequeIterator#`operator=`(27429434dcb0e41).=(const Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#& other) { Basecxx . . $ QTWTF/DequeIterator#Base#::assign(other); return *this; } |
| 160 | |
| 161 | T& operatorcxx . . $ QTWTF/DequeIterator#`operator*`(c93303b41ac66b6d).*() const { return *Basecxx . . $ QTWTF/DequeIterator#Base#::after(); } |
| 162 | T* operatorcxx . . $ QTWTF/DequeIterator#`operator->`(5a2a78a048fb49a8).->() const { return Basecxx . . $ QTWTF/DequeIterator#Base#::after(); } |
| 163 | |
| 164 | bool operatorcxx . . $ QTWTF/DequeIterator#`operator==`(69e63986b794debf).==(const Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#& other) const { return Basecxx . . $ QTWTF/DequeIterator#Base#::isEqual(other); } |
| 165 | bool operatorcxx . . $ QTWTF/DequeIterator#`operator!=`(69e63986b794debf).!=(const Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#& other) const { return !Basecxx . . $ QTWTF/DequeIterator#Base#::isEqual(other); } |
| 166 | |
| 167 | Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#& operatorcxx . . $ QTWTF/DequeIterator#operator++(f013584dc0326641).++() { Basecxx . . $ QTWTF/DequeIterator#Base#::increment(); return *this; } |
| 168 | // postfix ++ intentionally omitted |
| 169 | Iteratorcxx . . $ QTWTF/DequeIterator#Iterator#& operatorcxx . . $ QTWTF/DequeIterator#operator--(f013584dc0326641).--() { Basecxx . . $ QTWTF/DequeIterator#Base#::decrement(); return *this; } |
| 170 | // postfix -- intentionally omitted |
| 171 | }; |
| 172 | |
| 173 | template<typename T> |
| 174 | class DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator# : public DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> { |
| 175 | private: |
| 176 | typedef DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> Basecxx . . $ QTWTF/DequeConstIterator#Base#; |
| 177 | typedef DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator#<T> Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#; |
| 178 | typedef DequeIteratorcxx . . $ QTWTF/DequeIterator#<T> NonConstIteratorcxx . . $ QTWTF/DequeConstIterator#NonConstIterator#; |
| 179 | |
| 180 | public: |
| 181 | DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator#`DequeConstIterator<T>`(4a91e185bc00a415).(const Dequecxx . . $ QTWTF/Deque#<T>* deque, size_t index) : Basecxx . . $ QTWTF/DequeConstIterator#Base#(deque, index) { } |
| 182 | |
| 183 | DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator#`DequeConstIterator<T>`(6239b0fdad7230d9).(const Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#& other) : Basecxx . . $ QTWTF/DequeConstIterator#Base#(other) { } |
| 184 | DequeConstIteratorcxx . . $ QTWTF/DequeConstIterator#`DequeConstIterator<T>`(5684f4307458a44c).(const NonConstIteratorcxx . . $ QTWTF/DequeConstIterator#NonConstIterator#& other) : Basecxx . . $ QTWTF/DequeConstIterator#Base#(other) { } |
| 185 | DequeConstIterator& operatorcxx . . $ QTWTF/DequeConstIterator#`operator=`(b156afea0556d0da).=(const Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#& other) { Basecxx . . $ QTWTF/DequeConstIterator#Base#::assign(other); return *this; } |
| 186 | DequeConstIterator& operatorcxx . . $ QTWTF/DequeConstIterator#`operator=`(8377227d8256dfa5).=(const NonConstIteratorcxx . . $ QTWTF/DequeConstIterator#NonConstIterator#& other) { Basecxx . . $ QTWTF/DequeConstIterator#Base#::assign(other); return *this; } |
| 187 | |
| 188 | const T& operatorcxx . . $ QTWTF/DequeConstIterator#`operator*`(ea465e50d690edfe).*() const { return *Basecxx . . $ QTWTF/DequeConstIterator#Base#::after(); } |
| 189 | const T* operatorcxx . . $ QTWTF/DequeConstIterator#`operator->`(1016ee5406d91ab9).->() const { return Basecxx . . $ QTWTF/DequeConstIterator#Base#::after(); } |
| 190 | |
| 191 | bool operatorcxx . . $ QTWTF/DequeConstIterator#`operator==`(5a0c0a1b2b44ffae).==(const Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#& other) const { return Basecxx . . $ QTWTF/DequeConstIterator#Base#::isEqual(other); } |
| 192 | bool operatorcxx . . $ QTWTF/DequeConstIterator#`operator!=`(5a0c0a1b2b44ffae).!=(const Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#& other) const { return !Basecxx . . $ QTWTF/DequeConstIterator#Base#::isEqual(other); } |
| 193 | |
| 194 | Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#& operatorcxx . . $ QTWTF/DequeConstIterator#operator++(df587b46ffe57585).++() { Basecxx . . $ QTWTF/DequeConstIterator#Base#::increment(); return *this; } |
| 195 | // postfix ++ intentionally omitted |
| 196 | Iteratorcxx . . $ QTWTF/DequeConstIterator#Iterator#& operatorcxx . . $ QTWTF/DequeConstIterator#operator--(df587b46ffe57585).--() { Basecxx . . $ QTWTF/DequeConstIterator#Base#::decrement(); return *this; } |
| 197 | // postfix -- intentionally omitted |
| 198 | }; |
| 199 | |
| 200 | template<typename T> |
| 201 | class DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator# : public DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> { |
| 202 | private: |
| 203 | typedef DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> Basecxx . . $ QTWTF/DequeReverseIterator#Base#; |
| 204 | typedef DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator#<T> Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#; |
| 205 | |
| 206 | public: |
| 207 | DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator#`DequeReverseIterator<T>`(4a91e185bc00a415).(const Dequecxx . . $ QTWTF/Deque#<T>* deque, size_t index) : Basecxx . . $ QTWTF/DequeReverseIterator#Base#(deque, index) { } |
| 208 | |
| 209 | DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator#`DequeReverseIterator<T>`(2f363d58147f965d).(const Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#& other) : Basecxx . . $ QTWTF/DequeReverseIterator#Base#(other) { } |
| 210 | DequeReverseIterator& operatorcxx . . $ QTWTF/DequeReverseIterator#`operator=`(c6a07a8aab975862).=(const Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#& other) { Basecxx . . $ QTWTF/DequeReverseIterator#Base#::assign(other); return *this; } |
| 211 | |
| 212 | T& operatorcxx . . $ QTWTF/DequeReverseIterator#`operator*`(c93303b41ac66b6d).*() const { return *Basecxx . . $ QTWTF/DequeReverseIterator#Base#::before(); } |
| 213 | T* operatorcxx . . $ QTWTF/DequeReverseIterator#`operator->`(5a2a78a048fb49a8).->() const { return Basecxx . . $ QTWTF/DequeReverseIterator#Base#::before(); } |
| 214 | |
| 215 | bool operatorcxx . . $ QTWTF/DequeReverseIterator#`operator==`(f92637b81b77b709).==(const Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#& other) const { return Basecxx . . $ QTWTF/DequeReverseIterator#Base#::isEqual(other); } |
| 216 | bool operatorcxx . . $ QTWTF/DequeReverseIterator#`operator!=`(f92637b81b77b709).!=(const Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#& other) const { return !Basecxx . . $ QTWTF/DequeReverseIterator#Base#::isEqual(other); } |
| 217 | |
| 218 | Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#& operatorcxx . . $ QTWTF/DequeReverseIterator#operator++(954206afa297a4cb).++() { Basecxx . . $ QTWTF/DequeReverseIterator#Base#::decrement(); return *this; } |
| 219 | // postfix ++ intentionally omitted |
| 220 | Iteratorcxx . . $ QTWTF/DequeReverseIterator#Iterator#& operatorcxx . . $ QTWTF/DequeReverseIterator#operator--(954206afa297a4cb).--() { Basecxx . . $ QTWTF/DequeReverseIterator#Base#::increment(); return *this; } |
| 221 | // postfix -- intentionally omitted |
| 222 | }; |
| 223 | |
| 224 | template<typename T> |
| 225 | class DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator# : public DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> { |
| 226 | private: |
| 227 | typedef DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T> Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#; |
| 228 | typedef DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator#<T> Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#; |
| 229 | typedef DequeReverseIteratorcxx . . $ QTWTF/DequeReverseIterator#<T> NonConstIteratorcxx . . $ QTWTF/DequeConstReverseIterator#NonConstIterator#; |
| 230 | |
| 231 | public: |
| 232 | DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator#`DequeConstReverseIterator<T>`(4a91e185bc00a415).(const Dequecxx . . $ QTWTF/Deque#<T>* deque, size_t index) : Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#(deque, index) { } |
| 233 | |
| 234 | DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator#`DequeConstReverseIterator<T>`(dc72ecee698d80ea).(const Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#& other) : Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#(other) { } |
| 235 | DequeConstReverseIteratorcxx . . $ QTWTF/DequeConstReverseIterator#`DequeConstReverseIterator<T>`(a2f8309115be4e06).(const NonConstIteratorcxx . . $ QTWTF/DequeConstReverseIterator#NonConstIterator#& other) : Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#(other) { } |
| 236 | DequeConstReverseIterator& operatorcxx . . $ QTWTF/DequeConstReverseIterator#`operator=`(76940c3a6f63ab86).=(const Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#& other) { Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::assign(other); return *this; } |
| 237 | DequeConstReverseIterator& operatorcxx . . $ QTWTF/DequeConstReverseIterator#`operator=`(122785b43b611e92).=(const NonConstIteratorcxx . . $ QTWTF/DequeConstReverseIterator#NonConstIterator#& other) { Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::assign(other); return *this; } |
| 238 | |
| 239 | const T& operatorcxx . . $ QTWTF/DequeConstReverseIterator#`operator*`(ea465e50d690edfe).*() const { return *Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::before(); } |
| 240 | const T* operatorcxx . . $ QTWTF/DequeConstReverseIterator#`operator->`(1016ee5406d91ab9).->() const { return Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::before(); } |
| 241 | |
| 242 | bool operatorcxx . . $ QTWTF/DequeConstReverseIterator#`operator==`(2a8e9070b977ce6b).==(const Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#& other) const { return Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::isEqual(other); } |
| 243 | bool operatorcxx . . $ QTWTF/DequeConstReverseIterator#`operator!=`(2a8e9070b977ce6b).!=(const Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#& other) const { return !Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::isEqual(other); } |
| 244 | |
| 245 | Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#& operatorcxx . . $ QTWTF/DequeConstReverseIterator#operator++(c2864d47c4eccae8).++() { Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::decrement(); return *this; } |
| 246 | // postfix ++ intentionally omitted |
| 247 | Iteratorcxx . . $ QTWTF/DequeConstReverseIterator#Iterator#& operatorcxx . . $ QTWTF/DequeConstReverseIterator#operator--(c2864d47c4eccae8).--() { Basecxx . . $ QTWTF/DequeConstReverseIterator#Base#::increment(); return *this; } |
| 248 | // postfix -- intentionally omitted |
| 249 | }; |
| 250 | |
| 251 | #ifdef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 252 | template<typename T> inline void Dequecxx . . $ QTWTF/Deque#<T>::checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).() const { } |
| 253 | template<typename T> inline void Dequecxx . . $ QTWTF/Deque#<T>::checkIndexValiditycxx . . $ QTWTF/Deque#checkIndexValidity(cf8bf0a838713cc4).(size_t) const { } |
| 254 | template<typename T> inline void Dequecxx . . $ QTWTF/Deque#<T>::invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).() { } |
| 255 | #else |
| 256 | template<typename T> |
| 257 | void Deque<T>::checkValidity() const |
| 258 | { |
| 259 | if (!m_buffer.capacity()) { |
| 260 | ASSERT(!m_start); |
| 261 | ASSERT(!m_end); |
| 262 | } else { |
| 263 | ASSERT(m_start < m_buffer.capacity()); |
| 264 | ASSERT(m_end < m_buffer.capacity()); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | template<typename T> |
| 269 | void Deque<T>::checkIndexValidity(size_t index) const |
| 270 | { |
| 271 | ASSERT(index <= m_buffer.capacity()); |
| 272 | if (m_start <= m_end) { |
| 273 | ASSERT(index >= m_start); |
| 274 | ASSERT(index <= m_end); |
| 275 | } else { |
| 276 | ASSERT(index >= m_start || index <= m_end); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | template<typename T> |
| 281 | void Deque<T>::invalidateIterators() |
| 282 | { |
| 283 | IteratorBase* next; |
| 284 | for (IteratorBase* p = m_iterators; p; p = next) { |
| 285 | next = p->m_next; |
| 286 | p->m_deque = 0; |
| 287 | p->m_next = 0; |
| 288 | p->m_previous = 0; |
| 289 | } |
| 290 | m_iterators = 0; |
| 291 | } |
| 292 | #endif |
| 293 | |
| 294 | template<typename T> |
| 295 | inline Dequecxx . . $ QTWTF/Deque#<T>::Dequecxx . . $ QTWTF/Deque#`Deque<T>`(49f6e7a06ebc5aa8).() |
| 296 | : m_startcxx . . $ QTWTF/Deque#m_start.(0) |
| 297 | , m_endcxx . . $ QTWTF/Deque#m_end.(0) |
| 298 | #ifndef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 299 | , m_iterators(0) |
| 300 | #endif |
| 301 | { |
| 302 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 303 | } |
| 304 | |
| 305 | template<typename T> |
| 306 | inline Dequecxx . . $ QTWTF/Deque#<T>::Dequecxx . . $ QTWTF/Deque#`Deque<T>`(bbc8783a354d0a6b).(const Dequecxx . . $ QTWTF/Deque#<T>& other) |
| 307 | : m_startcxx . . $ QTWTF/Deque#m_start.(other.m_startcxx . . $ QTWTF/Deque#m_start.) |
| 308 | , m_endcxx . . $ QTWTF/Deque#m_end.(other.m_endcxx . . $ QTWTF/Deque#m_end.) |
| 309 | , m_buffercxx . . $ QTWTF/Deque#m_buffer.(other.m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).()) |
| 310 | #ifndef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 311 | , m_iterators(0) |
| 312 | #endif |
| 313 | { |
| 314 | const T* otherBuffer = other.m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).(); |
| 315 | if (m_startcxx . . $ QTWTF/Deque#m_start. <= m_endcxx . . $ QTWTF/Deque#m_end.) |
| 316 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::uninitializedCopy(otherBuffer +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., otherBuffer +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end., m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start.); |
| 317 | else { |
| 318 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::uninitializedCopy(otherBuffer, otherBuffer +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end., m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()); |
| 319 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::uninitializedCopy(otherBuffer +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., otherBuffer +cxx . . $ operator+(f3789794639247d3). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).(), m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start.); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | template<typename T> |
| 324 | void deleteAllValuescxx . . $ QTWTF/deleteAllValues(842f1478782d80dc).(const Dequecxx . . $ QTWTF/Deque#<T>& collection) |
| 325 | { |
| 326 | typedef typename Dequecxx . . $ QTWTF/Deque#<T>::const_iterator iteratorcxx . . $ QTWTF/deleteAllValues(842f1478782d80dc).iterator#; |
| 327 | iteratorcxx . . $ QTWTF/deleteAllValues(842f1478782d80dc).iterator# end = collection.endcxx . . $ QTWTF/Deque#end(c0f4bbbd3b7a5f5c).(); |
| 328 | for (iteratorcxx . . $ QTWTF/deleteAllValues(842f1478782d80dc).iterator# it = collection.begincxx . . $ QTWTF/Deque#begin(c0f4bbbd3b7a5f5c).(); it !=cxx . . $ QTWTF/`operator!=`(f838b2bc7e5b4b06). end; ++it) |
| 329 | delete *it; |
| 330 | } |
| 331 | |
| 332 | template<typename T> |
| 333 | inline Dequecxx . . $ QTWTF/Deque#<T>& Dequecxx . . $ QTWTF/Deque#<T>::operatorcxx . . $ QTWTF/Deque#`operator=`(71f26ecf15fef794).=(const Dequecxx . . $ QTWTF/Deque#<T>& other) |
| 334 | { |
| 335 | Dequecxx . . $ QTWTF/Deque#<T> copy(other); |
| 336 | swapcxx . . $ QTWTF/Deque#swap(edc6e9a9f4520fb8).(copy); |
| 337 | return *this; |
| 338 | } |
| 339 | |
| 340 | template<typename T> |
| 341 | inline void Dequecxx . . $ QTWTF/Deque#<T>::destroyAllcxx . . $ QTWTF/Deque#destroyAll(49f6e7a06ebc5aa8).() |
| 342 | { |
| 343 | if (m_startcxx . . $ QTWTF/Deque#m_start. <= m_endcxx . . $ QTWTF/Deque#m_end.) |
| 344 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::destruct(m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end.); |
| 345 | else { |
| 346 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::destruct(m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).(), m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end.); |
| 347 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::destruct(m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).()); |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | template<typename T> |
| 352 | inline Dequecxx . . $ QTWTF/Deque#<T>::~cxx . . $ QTWTF/Deque#`~Deque<T>`(49f6e7a06ebc5aa8).Deque() |
| 353 | { |
| 354 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 355 | invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).(); |
| 356 | destroyAllcxx . . $ QTWTF/Deque#destroyAll(49f6e7a06ebc5aa8).(); |
| 357 | } |
| 358 | |
| 359 | template<typename T> |
| 360 | inline void Dequecxx . . $ QTWTF/Deque#<T>::swapcxx . . $ QTWTF/Deque#swap(edc6e9a9f4520fb8).(Dequecxx . . $ QTWTF/Deque#<T>& other) |
| 361 | { |
| 362 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 363 | other.checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 364 | invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).(); |
| 365 | stdcxx . . $ std/::swapcxx . . $ std/swap(f89c42d3de5cf18b).(m_startcxx . . $ QTWTF/Deque#m_start., other.m_startcxx . . $ QTWTF/Deque#m_start.); |
| 366 | stdcxx . . $ std/::swapcxx . . $ std/swap(f89c42d3de5cf18b).(m_endcxx . . $ QTWTF/Deque#m_end., other.m_endcxx . . $ QTWTF/Deque#m_end.); |
| 367 | m_buffercxx . . $ QTWTF/Deque#m_buffer..swapcxx . . $ QTWTF/VectorBuffer#swap(f5b3cbb01743635d).(other.m_buffercxx . . $ QTWTF/Deque#m_buffer.); |
| 368 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 369 | other.checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 370 | } |
| 371 | |
| 372 | template<typename T> |
| 373 | inline void Dequecxx . . $ QTWTF/Deque#<T>::clearcxx . . $ QTWTF/Deque#clear(49f6e7a06ebc5aa8).() |
| 374 | { |
| 375 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 376 | invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).(); |
| 377 | destroyAllcxx . . $ QTWTF/Deque#destroyAll(49f6e7a06ebc5aa8).(); |
| 378 | m_startcxx . . $ QTWTF/Deque#m_start. = 0; |
| 379 | m_endcxx . . $ QTWTF/Deque#m_end. = 0; |
| 380 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 381 | } |
| 382 | |
| 383 | template<typename T> |
| 384 | template<typename Predicate> |
| 385 | inline DequeIteratorcxx . . $ QTWTF/DequeIterator#<T> Dequecxx . . $ QTWTF/Deque#<T>::findIfcxx . . $ QTWTF/Deque#findIf(866cb5c400bb2fc0).(Predicate& predicate) |
| 386 | { |
| 387 | iteratorcxx . . $ QTWTF/Deque#iterator# end_iterator = endcxx . . $ QTWTF/Deque#end(c0f4bbbd3b7a5f5c).(); |
| 388 | for (iteratorcxx . . $ QTWTF/Deque#iterator# it = begincxx . . $ QTWTF/Deque#begin(c0f4bbbd3b7a5f5c).(); it !=cxx . . $ QTWTF/`operator!=`(f838b2bc7e5b4b06). end_iterator; ++it) { |
| 389 | if (predicate(*it)) |
| 390 | return it; |
| 391 | } |
| 392 | return end_iterator; |
| 393 | } |
| 394 | |
| 395 | template<typename T> |
| 396 | inline void Dequecxx . . $ QTWTF/Deque#<T>::expandCapacityIfNeededcxx . . $ QTWTF/Deque#expandCapacityIfNeeded(49f6e7a06ebc5aa8).() |
| 397 | { |
| 398 | if (m_startcxx . . $ QTWTF/Deque#m_start.) { |
| 399 | if (m_endcxx . . $ QTWTF/Deque#m_end. + 1 != m_startcxx . . $ QTWTF/Deque#m_start.) |
| 400 | return; |
| 401 | } else if (m_endcxx . . $ QTWTF/Deque#m_end.) { |
| 402 | if (m_endcxx . . $ QTWTF/Deque#m_end. !=cxx . . $ QTWTF/`operator!=`(f838b2bc7e5b4b06). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).() - 1) |
| 403 | return; |
| 404 | } else if (m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).()) |
| 405 | return; |
| 406 | |
| 407 | expandCapacitycxx . . $ QTWTF/Deque#expandCapacity(49f6e7a06ebc5aa8).(); |
| 408 | } |
| 409 | |
| 410 | template<typename T> |
| 411 | void Dequecxx . . $ QTWTF/Deque#<T>::expandCapacitycxx . . $ QTWTF/Deque#expandCapacity(49f6e7a06ebc5aa8).() |
| 412 | { |
| 413 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 414 | size_t oldCapacity = m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).(); |
| 415 | size_t newCapacity = maxcxx . . $ QTWTF/max(2a338fce5842aa6a).(static_cast<size_t>(16), oldCapacity + oldCapacity / 4 + 1); |
| 416 | T* oldBuffer = m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).(); |
| 417 | m_buffercxx . . $ QTWTF/Deque#m_buffer..allocateBuffercxx . . $ QTWTF/VectorBuffer#allocateBuffer(2c44cd906ae4e829).(newCapacity); |
| 418 | if (m_startcxx . . $ QTWTF/Deque#m_start. <= m_endcxx . . $ QTWTF/Deque#m_end.) |
| 419 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::move(oldBuffer +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., oldBuffer +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end., m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start.); |
| 420 | else { |
| 421 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::move(oldBuffer, oldBuffer +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end., m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()); |
| 422 | size_t newStart = newCapacity - (oldCapacity - m_startcxx . . $ QTWTF/Deque#m_start.); |
| 423 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::move(oldBuffer +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., oldBuffer +cxx . . $ operator+(f3789794639247d3). oldCapacity, m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).() +cxx . . $ operator+(f3789794639247d3). newStart); |
| 424 | m_startcxx . . $ QTWTF/Deque#m_start. = newStart; |
| 425 | } |
| 426 | m_buffercxx . . $ QTWTF/Deque#m_buffer..deallocateBuffercxx . . $ QTWTF/VectorBuffer#deallocateBuffer(ebd0a1552f8ce24f).(oldBuffer); |
| 427 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 428 | } |
| 429 | |
| 430 | template<typename T> template<typename U> |
| 431 | inline void Dequecxx . . $ QTWTF/Deque#<T>::appendcxx . . $ QTWTF/Deque#append(edcd8b2679e9bd1a).(const U& value) |
| 432 | { |
| 433 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 434 | expandCapacityIfNeededcxx . . $ QTWTF/Deque#expandCapacityIfNeeded(49f6e7a06ebc5aa8).(); |
| 435 | new (&m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()[m_endcxx . . $ QTWTF/Deque#m_end.]) T(value); |
| 436 | if (m_endcxx . . $ QTWTF/Deque#m_end. ==cxx . . $ QTWTF/`operator==`(f838b2bc7e5b4b06). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).() - 1) |
| 437 | m_endcxx . . $ QTWTF/Deque#m_end. = 0; |
| 438 | else |
| 439 | ++m_endcxx . . $ QTWTF/Deque#m_end.; |
| 440 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 441 | } |
| 442 | |
| 443 | template<typename T> template<typename U> |
| 444 | inline void Dequecxx . . $ QTWTF/Deque#<T>::prependcxx . . $ QTWTF/Deque#prepend(edcd8b2679e9bd1a).(const U& value) |
| 445 | { |
| 446 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 447 | expandCapacityIfNeededcxx . . $ QTWTF/Deque#expandCapacityIfNeeded(49f6e7a06ebc5aa8).(); |
| 448 | if (!m_startcxx . . $ QTWTF/Deque#m_start.) |
| 449 | m_startcxx . . $ QTWTF/Deque#m_start. = m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).() - 1; |
| 450 | else |
| 451 | --m_startcxx . . $ QTWTF/Deque#m_start.; |
| 452 | new (&m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()[m_startcxx . . $ QTWTF/Deque#m_start.]) T(value); |
| 453 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 454 | } |
| 455 | |
| 456 | template<typename T> |
| 457 | inline void Dequecxx . . $ QTWTF/Deque#<T>::removeFirstcxx . . $ QTWTF/Deque#removeFirst(49f6e7a06ebc5aa8).() |
| 458 | { |
| 459 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 460 | invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).(); |
| 461 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(!isEmpty()); |
| 462 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::destruct(&m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()[m_startcxx . . $ QTWTF/Deque#m_start.], &m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).()[m_startcxx . . $ QTWTF/Deque#m_start. + 1]); |
| 463 | if (m_startcxx . . $ QTWTF/Deque#m_start. ==cxx . . $ QTWTF/`operator==`(f838b2bc7e5b4b06). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).() - 1) |
| 464 | m_startcxx . . $ QTWTF/Deque#m_start. = 0; |
| 465 | else |
| 466 | ++m_startcxx . . $ QTWTF/Deque#m_start.; |
| 467 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 468 | } |
| 469 | |
| 470 | template<typename T> |
| 471 | inline void Dequecxx . . $ QTWTF/Deque#<T>::removecxx . . $ QTWTF/Deque#remove(f7d6e36bea5b91b2).(iteratorcxx . . $ QTWTF/Deque#iterator#& it) |
| 472 | { |
| 473 | it.checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 474 | removecxx . . $ QTWTF/Deque#remove(1f6575f1173cedbf).(it.m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.); |
| 475 | } |
| 476 | |
| 477 | template<typename T> |
| 478 | inline void Dequecxx . . $ QTWTF/Deque#<T>::removecxx . . $ QTWTF/Deque#remove(1f6575f1173cedbf).(const_iteratorcxx . . $ QTWTF/Deque#const_iterator#& it) |
| 479 | { |
| 480 | it.checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 481 | removecxx . . $ QTWTF/Deque#remove(1f6575f1173cedbf).(it.m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.); |
| 482 | } |
| 483 | |
| 484 | template<typename T> |
| 485 | inline void Dequecxx . . $ QTWTF/Deque#<T>::removecxx . . $ QTWTF/Deque#remove(2c44cd906ae4e829).(size_t position) |
| 486 | { |
| 487 | if (position == m_endcxx . . $ QTWTF/Deque#m_end.) |
| 488 | return; |
| 489 | |
| 490 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 491 | invalidateIteratorscxx . . $ QTWTF/Deque#invalidateIterators(49f6e7a06ebc5aa8).(); |
| 492 | |
| 493 | T* buffer = m_buffercxx . . $ QTWTF/Deque#m_buffer..buffercxx . . $ QTWTF/VectorBufferBase#buffer(155dc7f103cdb9db).(); |
| 494 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::destruct(&buffer[position], &buffer[position + 1]); |
| 495 | |
| 496 | // Find which segment of the circular buffer contained the remove element, and only move elements in that part. |
| 497 | if (position >= m_startcxx . . $ QTWTF/Deque#m_start.) { |
| 498 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::moveOverlapping(buffer +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start., buffer +cxx . . $ operator+(f3789794639247d3). position, buffer +cxx . . $ operator+(f3789794639247d3). m_startcxx . . $ QTWTF/Deque#m_start. +cxx . . $ operator+(f3789794639247d3). 1); |
| 499 | m_startcxx . . $ QTWTF/Deque#m_start. = (m_startcxx . . $ QTWTF/Deque#m_start. + 1) %cxx . . $ `operator%`(665ce30667a89d56). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).(); |
| 500 | } else { |
| 501 | TypeOperationscxx . . $ QTWTF/Deque#TypeOperations#::moveOverlapping(buffer +cxx . . $ operator+(f3789794639247d3). position +cxx . . $ operator+(f3789794639247d3). 1, buffer +cxx . . $ operator+(f3789794639247d3). m_endcxx . . $ QTWTF/Deque#m_end., buffer +cxx . . $ operator+(f3789794639247d3). position); |
| 502 | m_endcxx . . $ QTWTF/Deque#m_end. = (m_endcxx . . $ QTWTF/Deque#m_end. - 1 +cxx . . $ operator+(f3789794639247d3). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).()) %cxx . . $ `operator%`(665ce30667a89d56). m_buffercxx . . $ QTWTF/Deque#m_buffer..capacitycxx . . $ QTWTF/VectorBufferBase#capacity(fe4d2d262d4164a8).(); |
| 503 | } |
| 504 | checkValiditycxx . . $ QTWTF/Deque#checkValidity(83f5f38750778ac8).(); |
| 505 | } |
| 506 | |
| 507 | #ifdef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 508 | template<typename T> inline void DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).() const { } |
| 509 | template<typename T> inline void DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(27af8a3862f50f99).(const DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>&) const { } |
| 510 | template<typename T> inline void DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::addToIteratorsListcxx . . $ QTWTF/DequeIteratorBase#addToIteratorsList(49f6e7a06ebc5aa8).() { } |
| 511 | template<typename T> inline void DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::removeFromIteratorsListcxx . . $ QTWTF/DequeIteratorBase#removeFromIteratorsList(49f6e7a06ebc5aa8).() { } |
| 512 | #else |
| 513 | template<typename T> |
| 514 | void DequeIteratorBase<T>::checkValidity() const |
| 515 | { |
| 516 | ASSERT(m_deque); |
| 517 | m_deque->checkIndexValidity(m_index); |
| 518 | } |
| 519 | |
| 520 | template<typename T> |
| 521 | void DequeIteratorBase<T>::checkValidity(const Base& other) const |
| 522 | { |
| 523 | checkValidity(); |
| 524 | other.checkValidity(); |
| 525 | ASSERT(m_deque == other.m_deque); |
| 526 | } |
| 527 | |
| 528 | template<typename T> |
| 529 | void DequeIteratorBase<T>::addToIteratorsList() |
| 530 | { |
| 531 | if (!m_deque) |
| 532 | m_next = 0; |
| 533 | else { |
| 534 | m_next = m_deque->m_iterators; |
| 535 | m_deque->m_iterators = this; |
| 536 | if (m_next) |
| 537 | m_next->m_previous = this; |
| 538 | } |
| 539 | m_previous = 0; |
| 540 | } |
| 541 | |
| 542 | template<typename T> |
| 543 | void DequeIteratorBase<T>::removeFromIteratorsList() |
| 544 | { |
| 545 | if (!m_deque) { |
| 546 | ASSERT(!m_next); |
| 547 | ASSERT(!m_previous); |
| 548 | } else { |
| 549 | if (m_next) { |
| 550 | ASSERT(m_next->m_previous == this); |
| 551 | m_next->m_previous = m_previous; |
| 552 | } |
| 553 | if (m_previous) { |
| 554 | ASSERT(m_deque->m_iterators != this); |
| 555 | ASSERT(m_previous->m_next == this); |
| 556 | m_previous->m_next = m_next; |
| 557 | } else { |
| 558 | ASSERT(m_deque->m_iterators == this); |
| 559 | m_deque->m_iterators = m_next; |
| 560 | } |
| 561 | } |
| 562 | m_next = 0; |
| 563 | m_previous = 0; |
| 564 | } |
| 565 | #endif |
| 566 | |
| 567 | template<typename T> |
| 568 | inline DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#`DequeIteratorBase<T>`(49f6e7a06ebc5aa8).() |
| 569 | : m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.(0) |
| 570 | { |
| 571 | } |
| 572 | |
| 573 | template<typename T> |
| 574 | inline DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#`DequeIteratorBase<T>`(4a91e185bc00a415).(const Dequecxx . . $ QTWTF/Deque#<T>* deque, size_t index) |
| 575 | : m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.(const_cast<Dequecxx . . $ QTWTF/Deque#<T>*>(deque)) |
| 576 | , m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.(index) |
| 577 | { |
| 578 | addToIteratorsListcxx . . $ QTWTF/DequeIteratorBase#addToIteratorsList(49f6e7a06ebc5aa8).(); |
| 579 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 580 | } |
| 581 | |
| 582 | template<typename T> |
| 583 | inline DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#`DequeIteratorBase<T>`(a97a954fee5eee55).(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#& other) |
| 584 | : m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.(other.m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.) |
| 585 | , m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.(other.m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.) |
| 586 | { |
| 587 | addToIteratorsListcxx . . $ QTWTF/DequeIteratorBase#addToIteratorsList(49f6e7a06ebc5aa8).(); |
| 588 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 589 | } |
| 590 | |
| 591 | template<typename T> |
| 592 | inline DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>& DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::operatorcxx . . $ QTWTF/DequeIteratorBase#`operator=`(6d48a1ff8086d0f0).=(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#& other) |
| 593 | { |
| 594 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 595 | other.checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 596 | removeFromIteratorsListcxx . . $ QTWTF/DequeIteratorBase#removeFromIteratorsList(49f6e7a06ebc5aa8).(); |
| 597 | |
| 598 | m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque. = other.m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.; |
| 599 | m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index. = other.m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.; |
| 600 | addToIteratorsListcxx . . $ QTWTF/DequeIteratorBase#addToIteratorsList(49f6e7a06ebc5aa8).(); |
| 601 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 602 | return *this; |
| 603 | } |
| 604 | |
| 605 | template<typename T> |
| 606 | inline DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::~cxx . . $ QTWTF/DequeIteratorBase#`~DequeIteratorBase<T>`(49f6e7a06ebc5aa8).DequeIteratorBase() |
| 607 | { |
| 608 | #ifndef NDEBUGcxx . . $ `<built-in>:472:9`! |
| 609 | removeFromIteratorsList(); |
| 610 | m_deque = 0; |
| 611 | #endif |
| 612 | } |
| 613 | |
| 614 | template<typename T> |
| 615 | inline bool DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::isEqualcxx . . $ QTWTF/DequeIteratorBase#isEqual(3e1ca94b3d8d8643).(const Basecxx . . $ QTWTF/DequeIteratorBase#Base#& other) const |
| 616 | { |
| 617 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(other); |
| 618 | return m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index. == other.m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.; |
| 619 | } |
| 620 | |
| 621 | template<typename T> |
| 622 | inline void DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::incrementcxx . . $ QTWTF/DequeIteratorBase#increment(49f6e7a06ebc5aa8).() |
| 623 | { |
| 624 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 625 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_index != m_deque->m_end); |
| 626 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_deque->m_buffer.capacity()); |
| 627 | if (m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index. ==cxx . . $ QTWTF/`operator==`(f838b2bc7e5b4b06). m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.->m_buffercxx . . $ QTWTF/Deque#m_buffer..capacity() - 1) |
| 628 | m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index. = 0; |
| 629 | else |
| 630 | ++m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.; |
| 631 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 632 | } |
| 633 | |
| 634 | template<typename T> |
| 635 | inline void DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::decrementcxx . . $ QTWTF/DequeIteratorBase#decrement(49f6e7a06ebc5aa8).() |
| 636 | { |
| 637 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 638 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_index != m_deque->m_start); |
| 639 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_deque->m_buffer.capacity()); |
| 640 | if (!m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.) |
| 641 | m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index. = m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.->m_buffercxx . . $ QTWTF/Deque#m_buffer..capacity() - 1; |
| 642 | else |
| 643 | --m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.; |
| 644 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 645 | } |
| 646 | |
| 647 | template<typename T> |
| 648 | inline T* DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::aftercxx . . $ QTWTF/DequeIteratorBase#after(5a2a78a048fb49a8).() const |
| 649 | { |
| 650 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 651 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_index != m_deque->m_end); |
| 652 | return &m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.->m_buffercxx . . $ QTWTF/Deque#m_buffer..buffer()[m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.]; |
| 653 | } |
| 654 | |
| 655 | template<typename T> |
| 656 | inline T* DequeIteratorBasecxx . . $ QTWTF/DequeIteratorBase#<T>::beforecxx . . $ QTWTF/DequeIteratorBase#before(5a2a78a048fb49a8).() const |
| 657 | { |
| 658 | checkValiditycxx . . $ QTWTF/DequeIteratorBase#checkValidity(83f5f38750778ac8).(); |
| 659 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(m_index != m_deque->m_start); |
| 660 | if (!m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index.) |
| 661 | return &m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.->m_buffercxx . . $ QTWTF/Deque#m_buffer..buffer()[m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.->m_buffercxx . . $ QTWTF/Deque#m_buffer..capacity() - 1]; |
| 662 | return &m_dequecxx . . $ QTWTF/DequeIteratorBase#m_deque.->m_buffercxx . . $ QTWTF/Deque#m_buffer..buffer()[m_indexcxx . . $ QTWTF/DequeIteratorBase#m_index. - 1]; |
| 663 | } |
| 664 | |
| 665 | } // namespace WTF |
| 666 | |
| 667 | using WTFcxx . . $ `<built-in>:467:9`!::Dequecxx . . $ Deque#; |
| 668 | |
| 669 | #endif // WTF_Deque_h |