NcmMSetFuncList

NcmMSetFuncList — NcmMSet Functions list.

Functions

Properties

char * full-name Read / Write / Construct Only
GObject * object Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── NcmMSetFunc
        ╰── NcmMSetFuncList

Description

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.

Functions

NcmMSetFuncListN ()

void
(*NcmMSetFuncListN) (NcmMSetFuncList *flist,
                     NcmMSet *mset,
                     const gdouble *x,
                     gdouble *res);

ncm_mset_func_list_register ()

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.

Parameters

name

function name

 

symbol

function symbol

 

ns

namespace

 

desc

function description

 

obj_type

object type

 

func

function pointer.

[scope notified]

nvar

number of variables

 

dim

function dimension

 

ncm_mset_func_list_select ()

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.

Parameters

ns

namespace.

[allow-none]

nvar

number of variables

 

dim

function dimension

 

Returns

NcmMSetFuncListStruct array.

[transfer container][element-type NcmMSetFuncListStruct]


ncm_mset_func_list_new ()

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.

Parameters

full_name

function full name

 

obj

associated object.

[allow-none]

Returns

newly created NcmMSetFuncList.

[transfer full]


ncm_mset_func_list_new_ns_name ()

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.

Parameters

ns

function namespace

 

name

function name

 

obj

associated object.

[allow-none]

Returns

newly created NcmMSetFuncList.

[transfer full]


ncm_mset_func_list_has_ns_name ()

gboolean
ncm_mset_func_list_has_ns_name (const gchar *ns,
                                const gchar *name);

Check if function name exists in ns .

Parameters

ns

function namespace

 

name

function name

 

Returns

whether the function name exists in ns .


ncm_mset_func_list_has_full_name ()

gboolean
ncm_mset_func_list_has_full_name (const gchar *full_name);

Check if function full_name exists.

Parameters

full_name

function full name

 

Returns

whether the function full_name .


ncm_mset_func_list_peek_obj ()

GObject *
ncm_mset_func_list_peek_obj (NcmMSetFuncList *flist);

Gets the object associated with the function.

Parameters

flist

NcmMSetFuncList

 

Returns

contained object.

[transfer none]

Types and Values

NCM_TYPE_MSET_FUNC_LIST

#define NCM_TYPE_MSET_FUNC_LIST (ncm_mset_func_list_get_type ())

struct NcmMSetFuncListClass

struct NcmMSetFuncListClass {
};

NcmMSetFuncList

typedef struct _NcmMSetFuncList NcmMSetFuncList;

Property Details

The “full-name” property

  “full-name”                char *

Namespace and function name.

Owner: NcmMSetFuncList

Flags: Read / Write / Construct Only

Default value: "NULL"


The “object” property

  “object”                   GObject *

object.

Owner: NcmMSetFuncList

Flags: Read / Write