![]() |
Include dependency graph for as_double.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | as_double |
Functions | |
| static void | as_double_destroy (as_double *value) |
| static as_double * | as_double_fromval (const as_val *value) |
| static double | as_double_get (const as_double *value) |
| static double | as_double_getorelse (const as_double *value, double fallback) |
| as_double * | as_double_init (as_double *value_ptr, double value) |
| as_double * | as_double_new (double value) |
| static as_val * | as_double_toval (const as_double *value) |
| void | as_double_val_destroy (as_val *value) |
| uint32_t | as_double_val_hashcode (const as_val *value) |
| char * | as_double_val_tostring (const as_val *value) |
|
inlinestatic |
Destroy the as_double and release resources.
| value | The double to destroy. |
Definition at line 177 of file as_double.h.
References as_val_destroy.
Convert from an as_val.
Definition at line 229 of file as_double.h.
References AS_DOUBLE, and as_util_fromval.
|
inlinestatic |
Get the double value.
Definition at line 203 of file as_double.h.
References as_double::as_double_getorelse().
|
inlinestatic |
Get the double value. If double is NULL, then return the fallback value.
Definition at line 192 of file as_double.h.
References as_double::value.
Initialize a stack allocated as_double with the given double value.
When the as_double is no longer needed, you should release it an it's resources:
| value_ptr | The as_double to initialize. |
| value | The double value. |
| as_double * as_double_new | ( | double | value) |
Creates a new heap allocated as_double.
When the as_double is no longer needed, you should release it an it's resources:
| value | The double value. |
Convert to an as_val.
Definition at line 218 of file as_double.h.
|
private |
Internal helper function for destroying an as_val.
|
private |
Internal helper function for getting the hashcode of an as_val.