cpg-integrators

cpg-integrators — Integrator registry

Synopsis

GSList const *      cpg_integrators_list                (void);
void                cpg_integrators_register            (GType gtype);
void                cpg_integrators_unregister          (GType gtype);
GSList *            cpg_integrators_create              (void);
GType               cpg_integrators_find                (const gchar *id);

Description

CpgIntegrators provides a registry for integrators. All integrators must be registered before loading a CpgNetwork.

Details

cpg_integrators_list ()

GSList const *      cpg_integrators_list                (void);

Get the list of integrators.

Returns :

A GSList of GType. [element-type GTypeClass][transfer none]

cpg_integrators_register ()

void                cpg_integrators_register            (GType gtype);

Register a new integrator.

gtype :

A GType

cpg_integrators_unregister ()

void                cpg_integrators_unregister          (GType gtype);

Unregister an integrator.

gtype :

A GType

cpg_integrators_create ()

GSList *            cpg_integrators_create              (void);

Create a list of instances of all registered integrators.

Returns :

A GSList. [element-type CpgIntegrator][transfer full]

cpg_integrators_find ()

GType               cpg_integrators_find                (const gchar *id);

Find an integrator by id.

id :

The integrator id

Returns :

A GType of the integrator or G_TYPE_INVALID when the integrator could not be found.