Lines Matching refs:m_data
87 m_vector.m_data[m_index[i]] = v.m_data[i]; in operator =()
102 T m_data[Size]; member in tcu::Vector
113 const T* getPtr (void) const { return &m_data[0]; } in getPtr()
114 T* getPtr (void) { return &m_data[0]; } in getPtr()
117 T x (void) const { return m_data[0]; } in x()
118 T y (void) const { DE_STATIC_ASSERT(Size >= 2); return m_data[1]; } in y()
119 T z (void) const { DE_STATIC_ASSERT(Size >= 3); return m_data[2]; } in z()
120 T w (void) const { DE_STATIC_ASSERT(Size >= 4); return m_data[3]; } in w()
123 T& x (void) { return m_data[0]; } in x()
124 T& y (void) { DE_STATIC_ASSERT(Size >= 2); return m_data[1]; } in y()
125 T& z (void) { DE_STATIC_ASSERT(Size >= 3); return m_data[2]; } in z()
126 T& w (void) { DE_STATIC_ASSERT(Size >= 4); return m_data[3]; } in w()
144 …Vector<T, 1> swizzle (int a) const { DE_ASSERT(a >= 0 && a < Size); return Vector<T, 1>(m_data[… in swizzle()
145 …RT(a >= 0 && a < Size); DE_ASSERT(b >= 0 && b < Size); return Vector<T, 2>(m_data[a], m_data[b]); } in swizzle()
146 …& b < Size); DE_ASSERT(c >= 0 && c < Size); return Vector<T, 3>(m_data[a], m_data[b], m_data[c]); } in swizzle()
147 …ize); DE_ASSERT(d >= 0 && d < Size); return Vector<T, 4>(m_data[a], m_data[b], m_data[c], m_data[d… in swizzle()
158 …const T& operator[] (int ndx) const { DE_ASSERT(de::inBounds(ndx, 0, Size)); return m_data[ndx… in operator []()
159 T& operator[] (int ndx) { DE_ASSERT(de::inBounds(ndx, 0, Size)); return m_data[ndx]; } in operator []()
161 …st Vector<T, Size>& v) const { for (int i = 0; i < Size; i++) if (m_data[i] != v.m_data[i]) return… in operator ==()
176 m_data[i] = T(); in Vector()
183 m_data[i] = s; in Vector()
190 m_data[0] = x_; in Vector()
191 m_data[1] = y_; in Vector()
198 m_data[0] = x_; in Vector()
199 m_data[1] = y_; in Vector()
200 m_data[2] = z_; in Vector()
207 m_data[0] = x_; in Vector()
208 m_data[1] = y_; in Vector()
209 m_data[2] = z_; in Vector()
210 m_data[3] = w_; in Vector()
217 m_data[i] = v.m_data[i]; in Vector()
224 m_data[i] = v[i]; in Vector()
233 vec.m_data[i] = m_vector.m_data[m_index[i]]; in operator Vector<T,Size>()
244 res.m_data[i] = NewT(m_data[i]); in cast()
256 res.m_data[i] = m_data[i]; in toWidth()
258 res.m_data[i] = T(0); in toWidth()
269 res.m_data[i] = -a.m_data[i]; in operator -()
278 res.m_data[i] = a.m_data[i] + b.m_data[i]; in operator +()
287 res.m_data[i] = a.m_data[i] - b.m_data[i]; in operator -()
296 res.m_data[i] = a.m_data[i] * b.m_data[i]; in operator *()
305 res.m_data[i] = a.m_data[i] / b.m_data[i]; in operator /()
314 res.m_data[i] = a.m_data[i] << b.m_data[i]; in operator <<()
323 res.m_data[i] = a.m_data[i] >> b.m_data[i]; in operator >>()
332 res.m_data[i] = s * a.m_data[i]; in operator *()
341 res.m_data[i] = s + a.m_data[i]; in operator +()
350 res.m_data[i] = s - a.m_data[i]; in operator -()
359 res.m_data[i] = a.m_data[i] - s; in operator -()
368 res.m_data[i] = s / a.m_data[i]; in operator /()
383 res.m_data[i] = a.m_data[i] / s; in operator /()
391 m_data[i] += v.m_data[i]; in operator +=()
399 m_data[i] -= v.m_data[i]; in operator -=()
412 stream << vec.m_data[i]; in operator <<()