Class method

NumCosmoMathModelClassset_submodel

Declaration [src]

void
ncm_model_class_set_submodel (
  NcmModelClass* model_class,
  guint submodel_slot_id,
  const gchar* name,
  const gchar* symbol,
  GType submodel_type
)

Description [src]

Sets the submodel_slot_id-th submodel slot of the model. The slot is exposed as a construct-only, type-checked object property named name. The submodel is therefore part of the model’s structure, fixed at construction.

Parameters

submodel_slot_id

Type: guint

Id of the submodel slot.

name

Type: const gchar*

Name of the submodel slot.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
symbol

Type: const gchar*

Symbol of the submodel slot.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
submodel_type

Type: GType

The GType of the submodel accepted by the slot.