Top |
gint | g_union_info_get_n_fields () |
GIFieldInfo * | g_union_info_get_field () |
gint | g_union_info_get_n_methods () |
GIFunctionInfo * | g_union_info_get_method () |
gboolean | g_union_info_is_discriminated () |
gint | g_union_info_get_discriminator_offset () |
GITypeInfo * | g_union_info_get_discriminator_type () |
GIConstantInfo * | g_union_info_get_discriminator () |
GIFunctionInfo * | g_union_info_find_method () |
gsize | g_union_info_get_size () |
gsize | g_union_info_get_alignment () |
GIUnionInfo represents a union type.
A union has methods and fields. Unions can optionally have a discriminator, which is a field deciding what type of real union fields is valid for specified instance.
gint
g_union_info_get_n_fields (GIUnionInfo *info
);
Obtain the number of fields this union has.
GIFieldInfo * g_union_info_get_field (GIUnionInfo *info
,gint n
);
Obtain the type information for field with specified index.
gint
g_union_info_get_n_methods (GIUnionInfo *info
);
Obtain the number of methods this union has.
GIFunctionInfo * g_union_info_get_method (GIUnionInfo *info
,gint n
);
Obtain the type information for method with specified index.
gboolean
g_union_info_is_discriminated (GIUnionInfo *info
);
Return true if this union contains discriminator field.
gint
g_union_info_get_discriminator_offset (GIUnionInfo *info
);
Returns offset of the discriminator field in the structure.
GITypeInfo *
g_union_info_get_discriminator_type (GIUnionInfo *info
);
Obtain the type information of the union discriminator.
GIConstantInfo * g_union_info_get_discriminator (GIUnionInfo *info
,gint n
);
Obtain discriminator value assigned for n-th union field, i.e. n-th union field is the active one if discriminator contains this constant.
GIFunctionInfo * g_union_info_find_method (GIUnionInfo *info
,const gchar *name
);
Obtain the type information for method named name
.
gsize
g_union_info_get_size (GIUnionInfo *info
);
Obtain the total size of the union.
gsize
g_union_info_get_alignment (GIUnionInfo *info
);
Obtain the required alignment of the union.