Values.NumericValue Class Reference

Detailed Description

Base value of numeric properties.

Inheritance diagram for Values.NumericValue:
Values.PropertyValue Values.BoolValue Values.ByteArrayValue Values.FloatValue Values.NumberValue Values.UnsignedNumberValue

Public Member Functions

virtual float ZeroOneRange ()
 Gets this value in the zero - 1 range. More...
 
virtual float ToFloat ()
 Gets this value as a floating point. More...
 
virtual double ToDouble ()
 Gets the value as a double. More...
 
virtual long ToLong ()
 Gets this value in long range. More...
 
virtual ulong ToULong ()
 Gets this value in ulong range. More...
 
- Public Member Functions inherited from Values.PropertyValue
virtual int GetID ()
 
virtual PropertyValue Copy ()
 
virtual PropertyValue Create ()
 
virtual void Read (Reader reader)
 
virtual void Write (Writer writer)
 

Additional Inherited Members

- Public Attributes inherited from Values.PropertyValue
bool Changed =true
 True if the value got changed. More...
 
int UnresolvedID =-1
 
- Properties inherited from Values.PropertyValue
bool ResolveRequired [get]
 

Member Function Documentation

virtual double Values.NumericValue.ToDouble ( )
inlinevirtual

Gets the value as a double.

Reimplemented in Values.FloatValue, Values.BoolValue, Values.NumberValue, and Values.UnsignedNumberValue.

virtual float Values.NumericValue.ToFloat ( )
inlinevirtual

Gets this value as a floating point.

Reimplemented in Values.FloatValue, Values.BoolValue, Values.NumberValue, and Values.UnsignedNumberValue.

virtual long Values.NumericValue.ToLong ( )
inlinevirtual

Gets this value in long range.

Reimplemented in Values.FloatValue, Values.NumberValue, and Values.UnsignedNumberValue.

virtual ulong Values.NumericValue.ToULong ( )
inlinevirtual

Gets this value in ulong range.

Reimplemented in Values.FloatValue, Values.NumberValue, and Values.UnsignedNumberValue.

virtual float Values.NumericValue.ZeroOneRange ( )
inlinevirtual

Gets this value in the zero - 1 range.

Reimplemented in Values.FloatValue, Values.BoolValue, Values.NumberValue, and Values.UnsignedNumberValue.