GLG Toolkit, Java Class Library  Version 4.5

Mutable double object. More...

Detailed Description

Mutable double object.

This object contains a double value.

Public Member Functions

 GlgDouble ()
 Default contsructor. More...
 
 GlgDouble (Double double_obj)
 Constructs a new GlgDouble with a specified value. More...
 
 GlgDouble (double dvalue_p)
 Constructs a new GlgDouble with a specified value. More...
 
 GlgDouble (GlgDouble double_obj)
 Copy constructor. More...
 
void CopyFrom (GlgDouble double_obj)
 Copies a value from another GlgDouble. More...
 
double doubleValue ()
 Returns the object's value. More...
 
double DoubleValue ()
 Returns this object's value. More...
 
int intValue ()
 Returns this object's value as an integer. More...
 
int IntValue ()
 Returns this object's value as an integer. More...
 

Static Public Member Functions

static GlgDouble GetFromCache (double value)
 Gets a GlgDouble object from a cache. More...
 
static void ReleaseToCache (GlgDouble double_obj)
 Returns the object to the internal cache for reuse. More...
 

Public Attributes

double dvalue
 The object's value. More...
 

Member Data Documentation

◆ dvalue

double dvalue

The object's value.

Constructor & Destructor Documentation

◆ GlgDouble() [1/4]

GlgDouble ( )

Default contsructor.

◆ GlgDouble() [2/4]

GlgDouble ( double  dvalue_p)

Constructs a new GlgDouble with a specified value.

Parameters
dvalue_pThe new value.

◆ GlgDouble() [3/4]

GlgDouble ( Double  double_obj)

Constructs a new GlgDouble with a specified value.

Parameters
double_objThe value object.

◆ GlgDouble() [4/4]

GlgDouble ( GlgDouble  double_obj)

Copy constructor.

Parameters
double_objThe object to copy the value from.

Member Function Documentation

◆ CopyFrom()

void CopyFrom ( GlgDouble  double_obj)

Copies a value from another GlgDouble.

Parameters
double_objThe object to copy the value from.

◆ doubleValue()

double doubleValue ( )

Returns the object's value.

Returns
The object's double value.

◆ DoubleValue()

double DoubleValue ( )

Returns this object's value.

Returns
The object's double value.

◆ GetFromCache()

static GlgDouble GetFromCache ( double  value)
static

Gets a GlgDouble object from a cache.

The method returns an object from an internal cache, or a newly created object if the cache is empty. The returned object is initialized to the specified value.

Parameters
valueThe new value.
Returns
An object from an internal cache.

◆ intValue()

int intValue ( )

Returns this object's value as an integer.

Returns
The object's value cast to integer.

◆ IntValue()

int IntValue ( )

Returns this object's value as an integer.

Returns
The object's value cast to integer.

◆ 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. Releasing to the cache objects created with new would result in consuming resources due to the growth of the cache size.

Parameters
double_objThe object to release.