Lines Matching refs:m_value
412 static WrappedType<Type> create (Type value) { WrappedType<Type> v; v.m_value = value; return v; }
413 inline Type getValue (void) const { return m_value; }
415 inline WrappedType<Type> operator+ (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value + other.getValue()); }
416 inline WrappedType<Type> operator* (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value * other.getValue()); }
417 inline WrappedType<Type> operator/ (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value / other.getValue()); }
418 inline WrappedType<Type> operator- (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value - other.getValue()); }
420 inline WrappedType<Type>& operator+= (const WrappedType<Type>& other) { m_value += other.getValue(); return *this; }
421 inline WrappedType<Type>& operator*= (const WrappedType<Type>& other) { m_value *= other.getValue(); return *this; }
422 inline WrappedType<Type>& operator/= (const WrappedType<Type>& other) { m_value /= other.getValue(); return *this; }
423 inline WrappedType<Type>& operator-= (const WrappedType<Type>& other) { m_value -= other.getValue(); return *this; }
425 inline bool operator== (const WrappedType<Type>& other) const { return m_value == other.m_value; }
426 inline bool operator!= (const WrappedType<Type>& other) const { return m_value != other.m_value; }
427 inline bool operator< (const WrappedType<Type>& other) const { return m_value < other.m_value; }
428 inline bool operator> (const WrappedType<Type>& other) const { return m_value > other.m_value; }
429 inline bool operator<= (const WrappedType<Type>& other) const { return m_value <= other.m_value; }
430 inline bool operator>= (const WrappedType<Type>& other) const { return m_value >= other.m_value; }
432 inline operator Type (void) const { return m_value; }
434 inline T to (void) const { return (T)m_value; }
436 Type m_value;
454 static Half create (float value) { Half h; h.m_value = floatToHalf(value); return h; }
455 inline deFloat16 getValue (void) const { return m_value; }
457 inline Half operator+ (const Half& other) const { return create(halfToFloat(m_value) + halfToFloat(other.getValue())); }
458 inline Half operator* (const Half& other) const { return create(halfToFloat(m_value) * halfToFloat(other.getValue())); }
459 inline Half operator/ (const Half& other) const { return create(halfToFloat(m_value) / halfToFloat(other.getValue())); }
460 inline Half operator- (const Half& other) const { return create(halfToFloat(m_value) - halfToFloat(other.getValue())); }
462 inline Half& operator+= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) + halfToFloat(m_value)); return *this; }
463 inline Half& operator*= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) * halfToFloat(m_value)); return *this; }
464 inline Half& operator/= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) / halfToFloat(m_value)); return *this; }
465 inline Half& operator-= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) - halfToFloat(m_value)); return *this; }
467 inline bool operator== (const Half& other) const { return m_value == other.m_value; }
468 inline bool operator!= (const Half& other) const { return m_value != other.m_value; }
469 inline bool operator< (const Half& other) const { return halfToFloat(m_value) < halfToFloat(other.m_value); }
470 inline bool operator> (const Half& other) const { return halfToFloat(m_value) > halfToFloat(other.m_value); }
471 inline bool operator<= (const Half& other) const { return halfToFloat(m_value) <= halfToFloat(other.m_value); }
472 inline bool operator>= (const Half& other) const { return halfToFloat(m_value) >= halfToFloat(other.m_value); }
475 inline T to (void) const { return (T)halfToFloat(m_value); }
480 deFloat16 m_value;
486 static Fixed create (deInt32 value) { Fixed v; v.m_value = value; return v; }
487 inline deInt32 getValue (void) const { return m_value; }
489 inline Fixed operator+ (const Fixed& other) const { return create(m_value + other.getValue()); }
490 m_value * other.getValue()); }
491 inline Fixed operator/ (const Fixed& other) const { return create(m_value / other.getValue()); }
492 inline Fixed operator- (const Fixed& other) const { return create(m_value - other.getValue()); }
494 inline Fixed& operator+= (const Fixed& other) { m_value += other.getValue(); return *this; }
495 inline Fixed& operator*= (const Fixed& other) { m_value *= other.getValue(); return *this; }
496 inline Fixed& operator/= (const Fixed& other) { m_value /= other.getValue(); return *this; }
497 inline Fixed& operator-= (const Fixed& other) { m_value -= other.getValue(); return *this; }
499 inline bool operator== (const Fixed& other) const { return m_value == other.m_value; }
500 inline bool operator!= (const Fixed& other) const { return m_value != other.m_value; }
501 inline bool operator< (const Fixed& other) const { return m_value < other.m_value; }
502 inline bool operator> (const Fixed& other) const { return m_value > other.m_value; }
503 inline bool operator<= (const Fixed& other) const { return m_value <= other.m_value; }
504 inline bool operator>= (const Fixed& other) const { return m_value >= other.m_value; }
506 inline operator deInt32 (void) const { return m_value; }
508 inline T to (void) const { return (T)m_value; }
510 deInt32 m_value;