Top |
void | (*NcmMSetFuncListN) () |
void | ncm_mset_func_list_register () |
GArray * | ncm_mset_func_list_select () |
NcmMSetFuncList * | ncm_mset_func_list_new () |
NcmMSetFuncList * | ncm_mset_func_list_new_ns_name () |
gboolean | ncm_mset_func_list_has_ns_name () |
gboolean | ncm_mset_func_list_has_full_name () |
GObject * | ncm_mset_func_list_peek_obj () |
This object is a subclass of NcmMSetFunc, designed to manage a list of functions.
To register these functions, the ncm_mset_func_list_register function is employed.
Selection of functions is accomplished through the use of the
ncm_mset_func_list_select()
function. Additionally, external objects have the
capability to register functions by utilizing the ncm_mset_func_list_register
function.
void (*NcmMSetFuncListN) (NcmMSetFuncList *flist
,NcmMSet *mset
,const gdouble *x
,gdouble *res
);
void ncm_mset_func_list_register (const gchar *name
,const gchar *symbol
,const gchar *ns
,const gchar *desc
,GType obj_type
,NcmMSetFuncListN func
,guint nvar
,guint dim
);
Register a new function in the NcmMSetFuncList class.
GArray * ncm_mset_func_list_select (const gchar *ns
,gint nvar
,gint dim
);
Selects the NcmMSetFuncListStruct array containing the function
in the namespace ns
with nvar
and dim
. If ns
is NULL then
gets from all namespaces, nvar
and/or dim
equals to -1 selects
any value. The contained strings must not be freed.
NcmMSetFuncList * ncm_mset_func_list_new (const gchar *full_name
,GObject *obj
);
Generates a new instance of NcmMSetFuncList based on the provided full_name
. The
full_name
should adhere to the "namespace:name" format, aligning with a registered
function. The associated obj
must match the type as the registered object.
NcmMSetFuncList * ncm_mset_func_list_new_ns_name (const gchar *ns
,const gchar *name
,GObject *obj
);
Creates a new instance of NcmMSetFuncList based on the provided ns
and name
.
The obj
must match the type as the registered object.
gboolean ncm_mset_func_list_has_ns_name (const gchar *ns
,const gchar *name
);
Check if function name
exists in ns
.
gboolean
ncm_mset_func_list_has_full_name (const gchar *full_name
);
Check if function full_name
exists.
GObject *
ncm_mset_func_list_peek_obj (NcmMSetFuncList *flist
);
Gets the object associated with the function.