Struct

NumCosmoMathObjArray

Description [src]

struct NcmObjArray {
  /* No available fields */
}

GObjects array with serialization support.

A NcmObjArray is a GPtrArray that holds GObject’s. It is used to store GObject’s that can be serialized to a GVariant.

Constructors

ncm_obj_array_new

Creates a new NcmObjArray.

ncm_obj_array_sized_new

Creates a new NcmObjArray with n elements preallocated.

Functions

ncm_obj_array_clear

If oa is not NULL, unreferences it and sets oa to NULL.

Instance methods

ncm_obj_array_add

Adds a GObject to a NcmObjArray.

ncm_obj_array_get

Gets a GObject from a NcmObjArray at position i.

ncm_obj_array_len

Gets the length of a NcmObjArray.

ncm_obj_array_peek

Peeks a GObject from a NcmObjArray at position i without increasing its reference count.

ncm_obj_array_ref

Increases the reference count of oa by one.

ncm_obj_array_set

Sets a GObject to a NcmObjArray. If there is already a GObject at position i, it is unreferenced.

ncm_obj_array_unref

Decreases the reference count of oa by one. If the reference count reaches zero, all objects in the array are unreferenced.