Lines Matching refs:Scalar
36 union Scalar union
42 Scalar (void) : intVal (0) {} in Scalar() function
43 Scalar (float v) : floatVal (v) {} in Scalar() function
44 Scalar (int v) : intVal (v) {} in Scalar() function
45 Scalar (bool v) : boolVal (v) {} in Scalar() function
48 bool operator== (Scalar other) const { return intVal == other.intVal; } in operator ==()
49 bool operator!= (Scalar other) const { return intVal != other.intVal; } in operator !=()
51 template <typename T> static Scalar min (void);
52 template <typename T> static Scalar max (void);
57 DE_STATIC_ASSERT(sizeof(Scalar) == sizeof(deUint32));
59 template <> inline Scalar Scalar::min<float> (void) { return Scalar((int)0xff800000); } in min()
60 template <> inline Scalar Scalar::max<float> (void) { return Scalar((int)0x7f800000); } in max()
61 template <> inline Scalar Scalar::min<int> (void) { return Scalar((int)0x80000000); } in min()
62 template <> inline Scalar Scalar::max<int> (void) { return Scalar((int)0x7fffffff); } in max()
63 template <> inline Scalar Scalar::min<bool> (void) { return Scalar(false); } in min()
64 template <> inline Scalar Scalar::max<bool> (void) { return Scalar(true); } in max()
66 template <> inline float Scalar::as<float> (void) const { return floatVal; } in as()
67 template <> inline float& Scalar::as<float> (void) { return floatVal; } in as()
68 template <> inline int Scalar::as<int> (void) const { return intVal; } in as()
69 template <> inline int& Scalar::as<int> (void) { return intVal; } in as()
70 template <> inline bool Scalar::as<bool> (void) const { return boolVal; } in as()
71 template <> inline bool& Scalar::as<bool> (void) { return boolVal; } in as()
77 …StridedValueRead (const VariableType& type, const Scalar* value) : m_type(type), m_value(value) {} in StridedValueRead()
80 const Scalar* getValuePtr (void) const { return m_value; } in getValuePtr()
84 const Scalar* m_value;
92 …dValueAccess (const VariableType& type, const Scalar* valuePtr) : m_type(&type), m_value(const_cas… in ConstStridedValueAccess()
104 Scalar asScalar (void) const { DE_STATIC_ASSERT(Stride == 1); return *m_value; } in asScalar()
109 …Scalar asScalar (int ndx) const { DE_ASSERT(de::inBounds(ndx, 0, Stride)); return m_valu… in asScalar()
119 …Scalar* m_value; // \note Non-const internal pointer is used so that ValueAccess can extend t…
127 …StridedValueAccess (const VariableType& type, Scalar* valuePtr) : ConstStridedValueAccess<Stride>(… in StridedValueAccess()
137 Scalar& asScalar (void) { DE_STATIC_ASSERT(Stride == 1); return *this->m_value; } in asScalar()
142 …Scalar& asScalar (int ndx) { DE_ASSERT(de::inBounds(ndx, 0, Stride)); return this->m_valu… in asScalar()
156 StridedValueAccess& operator= (Scalar val) { asScalar() = val; return *this; } in operator =()
201 …eType& type, const Scalar* minVal, const Scalar* maxVal) : m_type(&type), m_min(const_cast<Scalar*… in ConstValueRangeAccess()
219 Scalar* m_min; // \note See note in ConstValueAccess
220 Scalar* m_max;
243 …ValueRangeAccess (const VariableType& type, Scalar* minVal, Scalar* maxVal) : ConstValueRangeAcce… in ValueRangeAccess()
276 ValueRange (const VariableType& type, const Scalar* minVal, const Scalar* maxVal);
298 const Scalar* getMinPtr (void) const { return m_min.empty() ? DE_NULL : &m_min[0]; } in getMinPtr()
299 const Scalar* getMaxPtr (void) const { return m_max.empty() ? DE_NULL : &m_max[0]; } in getMaxPtr()
301 Scalar* getMinPtr (void) { return m_min.empty() ? DE_NULL : &m_min[0]; } in getMinPtr()
302 Scalar* getMaxPtr (void) { return m_max.empty() ? DE_NULL : &m_max[0]; } in getMaxPtr()
305 std::vector<Scalar> m_min;
306 std::vector<Scalar> m_max;
325 std::vector<Scalar> m_value;