GLG Toolkit, JavaScript Library  Version 4.6
GlgDouble Class Reference

Mutable double object. More...

Detailed Description

Mutable double object.

This object contains a double value. New GlgDouble instances can be created using the CreateGlgDouble method.

Static Public Member Functions

static GlgDouble CreateGlgDouble (double value)
 Constructor. More...
 
static double GetValue (GlgDouble object)
 Retrieves a double value of GlgDouble. More...
 
static void ReleaseToCache (GlgDouble double_obj)
 Returns the object to the internal cache for reuse. More...
 
static void SetValue (GlgDouble object, double value)
 Sets a double value of GlgDouble. More...
 

Member Function Documentation

◆ CreateGlgDouble()

static GlgDouble CreateGlgDouble ( double  value)
static

Constructor.

Creates an instance of GlgDouble containing the specified value. The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.

Parameters
valueThe value to assign to the GlgDouble instance.
Returns
A new instance of GlgDouble.

◆ GetValue()

static double GetValue ( GlgDouble  object)
static

Retrieves a double value of GlgDouble.

The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.

Parameters
objectThe object to query.
Returns
The object's value.

◆ ReleaseToCache()

static void ReleaseToCache ( GlgDouble  double_obj)
static

Returns the object to the internal cache for reuse.

The object should not be accessed after it is released to the cache.

Only objects obtained with a call to GLG API method should be released to the cache.

The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.

Parameters
double_objThe object to release.

◆ SetValue()

static void SetValue ( GlgDouble  object,
double  value 
)
static

Sets a double value of GlgDouble.

The static method is invoked on the GLG Toolkit handle obtained via a 'new GlgToolkit()' call at the application start-up.

Parameters
objectThe object to set the value of.
valueThe new value.