public

Inheritance Graph

graph BT
	Number
	Number --> Object
	click Number "classEScript_1_1Number"
	click Object "classEScript_1_1Object"

Description

[ Number ] > [ Object ]

Public Static Functions

   
   
Type * getTypeObject()
   
void init( EScript::Namespace & globals)
   
Number * create(double value)
   
void release( Number * n)
   
bool matches(const float u, const float v)

Public Functions

     
     
  Number(double value)  
     
  ~Number()  
     
double & operator*()  
     
double operator*() const  
     
std::string format(std::streamsize precision, bool scientific, std::streamsize width, char fill) const  
     
double modulo(const double m) const
Floating point symmetric modulo operation.
 
     
double getValue() const  
     
void setValue(double _value)  
     
Object * clone() const
> [ Object ]
     
std::string toString() const
o
 
     
double toDouble() const
o
 
     
bool rt_isEqual( Runtime & rt, const ObjPtr & other)  
     
internalTypeId_t _getInternalTypeId() const  

Documentation

function
EScript::Number::getTypeObject

public static
   
   
Type * getTypeObject( )

Defined in EScript/EScript/Objects/Values/Number.h:27


function
EScript::Number::init

public static
     
     
void init( EScript::Namespace & globals )

Defined in EScript/EScript/Objects/Values/Number.h:28


function
EScript::Number::create

public static
     
     
Number * create( double value )

Defined in EScript/EScript/Objects/Values/Number.h:31


function
EScript::Number::release

public static
     
     
void release( Number * n )

Defined in EScript/EScript/Objects/Values/Number.h:32


function
EScript::Number::matches

public static inline
     
     
bool matches( const float u,
  const float v
)    

Test if the two parameters are essentially equal as defined in the given reference by Knuth.

Parameters

u
First floating point parameter.
v
Second floating point parameter.

Returns

trueif both floating point values are essentially equal,falseotherwise.

See also: Donald E. Knuth: The art of computer programming. Volume II: Seminumerical algorithms. Addison-Wesley, 1969. Page 128, Equation (24).

Defined in EScript/EScript/Objects/Values/Number.h:47


function
EScript::Number::Number

public explicit
     
     
Number( double value )

Defined in EScript/EScript/Objects/Values/Number.h:51


function
EScript::Number::~Number

public inline virtual
   
   
~Number( )

Defined in EScript/EScript/Objects/Values/Number.h:52


function
EScript::Number::operator*

public inline
   
   
double & operator*( )

Defined in EScript/EScript/Objects/Values/Number.h:54


function
EScript::Number::operator*

public const inline
   
   
double operator*( ) const

Defined in EScript/EScript/Objects/Values/Number.h:55


function
EScript::Number::format

public const
     
     
std::string format( std::streamsize precision,
  bool scientific,
  std::streamsize width,
  char fill
) const    

Convert the number to a string configurable string representation.

Parameters

precision
Number of digits after the decimal point.
scientific
Switch for scientific or fixed-point notation.
width
Number of digits for padding.
fill
Character to use for padding.

Returns

Formatted string representation of the number.

Defined in EScript/EScript/Objects/Values/Number.h:66


function
EScript::Number::modulo

public const
     
     
double modulo( const double m ) const

Floating point symmetric modulo operation.

Defined in EScript/EScript/Objects/Values/Number.h:69


function
EScript::Number::getValue

public const inline
   
   
double getValue( ) const

Defined in EScript/EScript/Objects/Values/Number.h:71


function
EScript::Number::setValue

public inline
     
     
void setValue( double _value )

Defined in EScript/EScript/Objects/Values/Number.h:72


function
EScript::Number::clone

public const inline virtual
   
   
Object * clone( ) const
> [ Object ]

Defined in EScript/EScript/Objects/Values/Number.h:75


function
EScript::Number::toString

public const virtual
   
   
std::string toString( ) const

o

Defined in EScript/EScript/Objects/Values/Number.h:77


function
EScript::Number::toDouble

public const inline virtual
   
   
double toDouble( ) const

o

Defined in EScript/EScript/Objects/Values/Number.h:78


function
EScript::Number::rt_isEqual

public virtual
     
     
bool rt_isEqual( Runtime & rt,
  const ObjPtr & other
)    

o

Note: For camparing objects, never use this function directly but use isEqual(…) instead. Otherwise scripted ‘==’-member functions are not supported.

Defined in EScript/EScript/Objects/Values/Number.h:79


function
EScript::Number::_getInternalTypeId

public const inline virtual
   
   
internalTypeId_t _getInternalTypeId( ) const

o For internal use only.

Defined in EScript/EScript/Objects/Values/Number.h:80