Functions | |
mirkl_error_t * | mir_rational_instance_create_str (mirkl_object_t **obj, char *str, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_rational_instance_create_mpq (mirkl_object_t **obj, mpq_t val, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_rational_instance_create_int (mirkl_object_t **obj, mirkl_int64_t num, mirkl_int64_t den, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_rational_instance_create_mpz (mirkl_object_t **obj, mpz_t val, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_rational_instance_create_mpz_split (mirkl_object_t **obj, mpz_t num, mpz_t den, mirkl_uint32_t flags, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
mirkl_error_t * | mir_rational_set_data_str (mirkl_object_t *obj, char *str) |
mirkl_error_t * | mir_rational_set_data_mpq (mirkl_object_t *obj, mpq_t val) |
mirkl_error_t * | mir_rational_set_data_int (mirkl_object_t *obj, mirkl_int64_t num, mirkl_int64_t den) |
mirkl_error_t * | mir_rational_set_data_mpz (mirkl_object_t *obj, mpz_t val) |
mirkl_error_t * | mir_rational_set_data_mpz_split (mirkl_object_t *obj, mpz_t num, mpz_t den) |
Variables | |
mirkl_object_t * | MirRationalClass |
Rational class. | |
mirkl_error_t * mir_rational_instance_create_int | ( | mirkl_object_t ** | obj, |
mirkl_int64_t | num, | ||
mirkl_int64_t | den, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of Rational object.
[out] | obj | Reference to the created object. |
num | numerator value for initialization. | |
den | denominator value for initialization. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_rational_instance_create_mpq | ( | mirkl_object_t ** | obj, |
mpq_t | val, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of Rational object.
[out] | obj | Reference to the created object. |
val | MPQ value for initialization. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_rational_instance_create_mpz | ( | mirkl_object_t ** | obj, |
mpz_t | val, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of Rational object from one mpz_t value.
[out] | obj | Reference to the created object. |
val | MPZ value for initialization. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_rational_instance_create_mpz_split | ( | mirkl_object_t ** | obj, |
mpz_t | num, | ||
mpz_t | den, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of Rational object from two mpz_t values.
[out] | obj | Reference to the created object. |
num | MPZ numerator value for initialization. | |
den | MPZ denominator value for initialization. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_rational_instance_create_str | ( | mirkl_object_t ** | obj, |
char * | str, | ||
mirkl_uint32_t | flags, | ||
mir_prsdata_t * | pp, | ||
apr_pool_t * | pool, | ||
apr_pool_t * | tmp_pool | ||
) |
Creation of Rational object.
[out] | obj | Reference to the created object. |
str | String with value for initialization. | |
flags | Flags of the object. | |
pp | Reference to the parser data structure. | |
pool | The pool to use for allocations of object structures. Should be valid as long as the created object lives. | |
tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
mirkl_error_t * mir_rational_set_data_int | ( | mirkl_object_t * | obj, |
mirkl_int64_t | num, | ||
mirkl_int64_t | den | ||
) |
Sets the value from int64 type variables.
obj | Reference to the object. |
num | numerator value for initialization. |
den | denominator value for initialization. |
mirkl_error_t * mir_rational_set_data_mpq | ( | mirkl_object_t * | obj, |
mpq_t | val | ||
) |
Sets the value from GMPs mpq_t type variable.
obj | Reference to the object. |
val | MPQ value to set. |
mirkl_error_t * mir_rational_set_data_mpz | ( | mirkl_object_t * | obj, |
mpz_t | val | ||
) |
Sets the value from one mpz_t type variable.
obj | Reference to the object. |
val | value for initialization. |
mirkl_error_t * mir_rational_set_data_mpz_split | ( | mirkl_object_t * | obj, |
mpz_t | num, | ||
mpz_t | den | ||
) |
Sets the value from two mpz_t type variables.
obj | Reference to the object. |
num | numerator value for initialization. |
den | denominator value for initialization. |
mirkl_error_t * mir_rational_set_data_str | ( | mirkl_object_t * | obj, |
char * | str | ||
) |
Setting value for Rational object.
obj | Reference to the object. |
str | String with value to set. |