Class
NumCosmoMathModelCtrl
Description [src]
final class NumCosmoMath.ModelCtrl : GObject.Object
{
/* No available fields */
}
Control object for testing updates on model status.
This object is employed to manage the status of a NcmModel. It serves the purpose of
checking whether the model has been updated since the last call to
ncm_model_ctrl_update(). Calculation objects dependent on the model can utilize this
object to determine if updates are necessary.
Functions
ncm_model_ctrl_clear
Checks if *ctrl is not NULL, and if so, decreases the reference count
of ctrl. If the reference count reaches zero, ctrl is freed. The
pointer to ctrl is set to NULL.
Instance methods
ncm_model_ctrl_force_update
Forces an update on ctrl. In practice, this function clears the
model inside ctrl and all submodels.
ncm_model_ctrl_free
Decreases the reference count of ctrl. If the reference count
reaches zero, ctrl is freed.
ncm_model_ctrl_model_has_submodel
Checks if there is a submode inside ctrl model, it is an
error to call this function in an empty ctrl.
ncm_model_ctrl_model_last_update
Checks if the main model was updated during the last call to ncm_model_ctrl_update().
ncm_model_ctrl_model_update
Same as ncm_model_ctrl_update(), but only checks if the model objects are the same. The pkey is not checked.
ncm_model_ctrl_submodel_last_update
Checks if the submodel mid was updated during the last call to ncm_model_ctrl_update().
ncm_model_ctrl_update
Compares the model inside ctrl with model and updates the status of
ctrl. If the model inside ctrl differs from model, ctrl is
updated, and TRUE is returned. Otherwise, FALSE is returned.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.