Lines Matching refs:WTFArray
28 class WTFArray {
31 WTFArray() : is_null_(false) {} in WTFArray() function
33 WTFArray(std::nullptr_t null_pointer) : is_null_(true) {} in WTFArray() function
38 explicit WTFArray(size_t size) : vec_(size), is_null_(false) {} in WTFArray() function
39 ~WTFArray() {} in ~WTFArray()
42 WTFArray(WTF::Vector<T>&& other) : vec_(std::move(other)), is_null_(false) {} in WTFArray() function
43 WTFArray(WTFArray&& other) : is_null_(true) { Take(&other); } in WTFArray() function
45 WTFArray& operator=(WTF::Vector<T>&& other) {
50 WTFArray& operator=(WTFArray&& other) {
55 WTFArray& operator=(std::nullptr_t null_pointer) {
64 static WTFArray New(size_t size) { return WTFArray(size); } in New()
68 static WTFArray From(const U& other) { in From()
69 return TypeConverter<WTFArray, U>::Convert(other); in From()
75 return TypeConverter<U, WTFArray>::Convert(*this); in To()
127 void Swap(WTFArray* other) { in Swap()
148 WTFArray Clone() const { in Clone()
149 WTFArray result; in Clone()
158 bool Equals(const WTFArray& other) const { in Equals()
166 typedef WTF::Vector<T> WTFArray::*Testable;
173 return is_null_ ? 0 : &WTFArray::vec_; in Testable()
180 bool operator==(const WTFArray<U>& other) const = delete;
182 bool operator!=(const WTFArray<U>& other) const = delete;
184 void Take(WTFArray* other) { in Take()
192 DISALLOW_COPY_AND_ASSIGN(WTFArray);