Lines Matching refs:m_value

399 		static WrappedType<Type>	create			(Type value)							{ WrappedType<Type> v; v.m_value = value; return v; }
400 inline Type getValue (void) const { return m_value; }
402 inline WrappedType<Type> operator+ (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value + other.getValue())); }
403 inline WrappedType<Type> operator* (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value * other.getValue())); }
404 inline WrappedType<Type> operator/ (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value / other.getValue())); }
405 inline WrappedType<Type> operator- (const WrappedType<Type>& other) const { return WrappedType<Type>::create((Type)(m_value - other.getValue())); }
407 inline WrappedType<Type>& operator+= (const WrappedType<Type>& other) { m_value += other.getValue(); return *this; }
408 inline WrappedType<Type>& operator*= (const WrappedType<Type>& other) { m_value *= other.getValue(); return *this; }
409 inline WrappedType<Type>& operator/= (const WrappedType<Type>& other) { m_value /= other.getValue(); return *this; }
410 inline WrappedType<Type>& operator-= (const WrappedType<Type>& other) { m_value -= other.getValue(); return *this; }
412 inline bool operator== (const WrappedType<Type>& other) const { return m_value == other.m_value; }
413 inline bool operator!= (const WrappedType<Type>& other) const { return m_value != other.m_value; }
414 inline bool operator< (const WrappedType<Type>& other) const { return m_value < other.m_value; }
415 inline bool operator> (const WrappedType<Type>& other) const { return m_value > other.m_value; }
416 inline bool operator<= (const WrappedType<Type>& other) const { return m_value <= other.m_value; }
417 inline bool operator>= (const WrappedType<Type>& other) const { return m_value >= other.m_value; }
419 inline operator Type (void) const { return m_value; }
421 inline T to (void) const { return (T)m_value; }
423 Type m_value;
441 static Int create (deInt32 value) { Int v; v.m_value = value; return v; }
442 inline deInt32 getValue (void) const { return m_value; }
444 inline Int operator+ (const Int& other) const { return Int::create((deInt32)((deInt64)m_value + (deInt64)other.getValue())); }
445 inline Int operator* (const Int& other) const { return Int::create((deInt32)((deInt64)m_value * (deInt64)other.getValue())); }
446 inline Int operator/ (const Int& other) const { return Int::create((deInt32)((deInt64)m_value / (deInt64)other.getValue())); }
447 inline Int operator- (const Int& other) const { return Int::create((deInt32)((deInt64)m_value - (deInt64)other.getValue())); }
449 inline Int& operator+= (const Int& other) { m_value = (deInt32)((deInt64)m_value + (deInt64)other.getValue()); return *this; }
450 inline Int& operator*= (const Int& other) { m_value = (deInt32)((deInt64)m_value * (deInt64)other.getValue()); return *this; }
451 inline Int& operator/= (const Int& other) { m_value = (deInt32)((deInt64)m_value / (deInt64)other.getValue()); return *this; }
452 inline Int& operator-= (const Int& other) { m_value = (deInt32)((deInt64)m_value - (deInt64)other.getValue()); return *this; }
454 inline bool operator== (const Int& other) const { return m_value == other.m_value; }
455 inline bool operator!= (const Int& other) const { return m_value != other.m_value; }
456 inline bool operator< (const Int& other) const { return m_value < other.m_value; }
457 inline bool operator> (const Int& other) const { return m_value > other.m_value; }
458 inline bool operator<= (const Int& other) const { return m_value <= other.m_value; }
459 inline bool operator>= (const Int& other) const { return m_value >= other.m_value; }
461 inline operator deInt32 (void) const { return m_value; }
463 inline T to (void) const { return (T)m_value; }
465 deInt32 m_value;
471 static Half create (float value) { Half h; h.m_value = floatToHalf(value); return h; }
472 inline deFloat16 getValue (void) const { return m_value; }
474 inline Half operator+ (const Half& other) const { return create(halfToFloat(m_value) + halfToFloat(other.getValue())); }
475 inline Half operator* (const Half& other) const { return create(halfToFloat(m_value) * halfToFloat(other.getValue())); }
476 inline Half operator/ (const Half& other) const { return create(halfToFloat(m_value) / halfToFloat(other.getValue())); }
477 inline Half operator- (const Half& other) const { return create(halfToFloat(m_value) - halfToFloat(other.getValue())); }
479 inline Half& operator+= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) + halfToFloat(m_value)); return *this; }
480 inline Half& operator*= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) * halfToFloat(m_value)); return *this; }
481 inline Half& operator/= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) / halfToFloat(m_value)); return *this; }
482 inline Half& operator-= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) - halfToFloat(m_value)); return *this; }
484 inline bool operator== (const Half& other) const { return m_value == other.m_value; }
485 inline bool operator!= (const Half& other) const { return m_value != other.m_value; }
486 inline bool operator< (const Half& other) const { return halfToFloat(m_value) < halfToFloat(other.m_value); }
487 inline bool operator> (const Half& other) const { return halfToFloat(m_value) > halfToFloat(other.m_value); }
488 inline bool operator<= (const Half& other) const { return halfToFloat(m_value) <= halfToFloat(other.m_value); }
489 inline bool operator>= (const Half& other) const { return halfToFloat(m_value) >= halfToFloat(other.m_value); }
492 inline T to (void) const { return (T)halfToFloat(m_value); }
497 deFloat16 m_value;
503 static Fixed create (deInt32 value) { Fixed v; v.m_value = value; return v; }
504 inline deInt32 getValue (void) const { return m_value; }
506 inline Fixed operator+ (const Fixed& other) const { return create(m_value + other.getValue()); }
507 inline Fixed operator* (const Fixed& other) const { return create(m_value * other.getValue()); }
508 inline Fixed operator/ (const Fixed& other) const { return create(m_value / other.getValue()); }
509 inline Fixed operator- (const Fixed& other) const { return create(m_value - other.getValue()); }
511 inline Fixed& operator+= (const Fixed& other) { m_value += other.getValue(); return *this; }
512 inline Fixed& operator*= (const Fixed& other) { m_value *= other.getValue(); return *this; }
513 inline Fixed& operator/= (const Fixed& other) { m_value /= other.getValue(); return *this; }
514 inline Fixed& operator-= (const Fixed& other) { m_value -= other.getValue(); return *this; }
516 inline bool operator== (const Fixed& other) const { return m_value == other.m_value; }
517 inline bool operator!= (const Fixed& other) const { return m_value != other.m_value; }
518 inline bool operator< (const Fixed& other) const { return m_value < other.m_value; }
519 inline bool operator> (const Fixed& other) const { return m_value > other.m_value; }
520 inline bool operator<= (const Fixed& other) const { return m_value <= other.m_value; }
521 inline bool operator>= (const Fixed& other) const { return m_value >= other.m_value; }
523 inline operator deInt32 (void) const { return m_value; }
525 inline T to (void) const { return (T)m_value; }
527 deInt32 m_value;