BScalar
BScalar — Base class for scalar data objects.
|
|
Object Hierarchy
GObject
╰── GInitiallyUnowned
╰── BData
╰── BScalar
╰── BValScalar
Description
Abstract base class for data classes representing scalar values.
Functions
b_scalar_get_value ()
double
b_scalar_get_value (BScalar *scalar
);
Get the value of scalar
. If the cache is valid, it will use that.
Otherwise, it will call the BScalar's get_value()
method.
b_scalar_get_str ()
char *
b_scalar_get_str (BScalar *scalar
,
const gchar *format
);
Get a string representation of scalar
.
Returns
the string. The caller is
responsible for freeing it.
Types and Values
struct BScalarClass
struct BScalarClass {
BDataClass base;
double (*get_value) (BScalar * scalar);
};
Class for BScalar.
BScalar
typedef struct _BScalar BScalar;
Object representing a single double-precision number.