Modules | |
| Array | |
| BigFloat | |
| BigInteger | |
| BitArray | |
| Complex | |
| Exception | |
| Float | |
| Float | |
| FMatrix | |
| Func | |
| FVector | |
| Group | |
| Hash | |
| Integer | |
| IO | |
| IVector | |
| Matrix | |
| Nil, True and False | |
| Random | |
| Rational | |
| String | |
| Symbol | |
| Time | |
| Vector | |
Functions | |
| mirkl_error_t * | mir_class_define (mirkl_object_t **obj, const char *cname, mirkl_object_t *super, mirkl_object_t *scope, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| Definition of a class in global scope. | |
| mirkl_error_t * | mir_class_new_instance (mirkl_object_t *class_obj, mirkl_object_t **instance_obj, mir_ast_t *init_args, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| Create instance from class. | |
| mirkl_error_t * | mir_class_add_method_cfunc_i (mirkl_object_t *class_obj, const char *var_name, mirkl_error_t *(*func)(mirkl_object_t *obj, mir_ast_t *ast, mir_ast_t **ret, void *mdata, mir_prsdata_t *pp, apr_pool_t *pool), int line, const char *file, void *mdata, mirkl_uint32_t mflags, mirkl_uint32_t oflags, mirkl_object_t **ret_mobj, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| mirkl_error_t * | mir_class_add_reader (mirkl_object_t *cobj, const char *varname, mirkl_uint32_t mflags, mirkl_uint32_t oflags, mirkl_object_t **ret_mobj, mirkl_object_t **ret_var, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| mirkl_error_t * | mir_class_add_writer (mirkl_object_t *cobj, const char *varname, mirkl_uint32_t mflags, mirkl_uint32_t oflags, mirkl_object_t **ret_mobj, mirkl_object_t **ret_var, mir_prsdata_t *pp, apr_pool_t *pool, apr_pool_t *tmp_pool) |
| Similar to mir_class_add_reader, creates writer accessor. | |
| void | mir_class_del_method (mirkl_object_t *obj, const char *name) |
| mirkl_error_t * | mir_class_set_super (mirkl_object_t *obj, mirkl_object_t *super) |
| mirkl_object_t * | mir_class_get_super (mirkl_object_t *class_obj) |
| Getting the object of the superclass. | |
| mirkl_error_t * mir_class_add_reader | ( | mirkl_object_t * | cobj, |
| const char * | varname, | ||
| mirkl_uint32_t | mflags, | ||
| mirkl_uint32_t | oflags, | ||
| mirkl_object_t ** | ret_mobj, | ||
| mirkl_object_t ** | ret_var, | ||
| mir_prsdata_t * | pp, | ||
| apr_pool_t * | pool, | ||
| apr_pool_t * | tmp_pool | ||
| ) |
Definition of reader method for instances of classes.
| [in] | cobj | Class, for which the accessor method(s) should be defined. |
| [in] | varname | Name of the variable, which should be accessed. |
| [in] | mflags | Flags for the method created, MIR_METH_... |
| [in] | oflags | Flags for the object of the method created, MIR_OBJFLAG_... |
| [in] | pp | Parser context. |
| [in,out] | ret_mobj | Created method object. |
| [in,out] | ret_var | Created variable containing method object. |
| [in] | pool | Memory pool for allocations of created functions. Should live as long as the created function. |
| [in] | tmp_pool | Memory pool for temporary allocations. Can be deleted after the call. |
| mirkl_error_t * mir_class_define | ( | mirkl_object_t ** | obj, |
| const char * | cname, | ||
| mirkl_object_t * | super, | ||
| mirkl_object_t * | scope, | ||
| mir_prsdata_t * | pp, | ||
| apr_pool_t * | pool, | ||
| apr_pool_t * | tmp_pool | ||
| ) |
Definition of a class in global scope.
| obj | Reference to the object of newly defined class. |
| cname | Name of class to be defined. |
| super | Object of the super class for the defined class. |
| scope | Object, in which the class is defined. If NULL, then the class is defined in MirMainObject. |
| pool | The pool to use for allocations of class structures. Should be valid as long as the created class lives. |
| tmp_pool | The pool for temporary allocations. Can be deleted after calling this function. |
| mirkl_error_t * mir_class_new_instance | ( | mirkl_object_t * | class_obj, |
| mirkl_object_t ** | instance_obj, | ||
| mir_ast_t * | init_args, | ||
| mir_prsdata_t * | pp, | ||
| apr_pool_t * | pool, | ||
| apr_pool_t * | tmp_pool | ||
| ) |
Create instance from class.
| [in] | class_obj | Object of class. |
| [out] | instance_obj | Object of instance on output. |
| init_args | List of arguments for 'init' method. | |
| pp | Parser context. | |
| pool | Memory pool for allocation of the new object. | |
| tmp_pool | Memory pool for temporary actions. |
| mirkl_error_t * mir_class_set_super | ( | mirkl_object_t * | obj, |
| mirkl_object_t * | super | ||
| ) |
Setting superclass of the class.
| obj | Class object, which superclass should be changed. |
| super | Class object, which should be superclass of class obj. |