UnionInfo
Object Hierarchy:
Description:
[
CCode ( type_id =
"g_base_info_gtype_get_type ()" ) ]
[
Compact ]
public class UnionInfo :
BaseInfo
Content:
Methods:
- public FunctionInfo find_method (string name)
Obtain the type information for method named name
.
- public size_t get_alignment ()
Obtain the required alignment of the union.
- public ConstantInfo get_discriminator (int 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.
- public int get_discriminator_offset ()
Returns offset of the discriminator field in the structure.
- public TypeInfo get_discriminator_type ()
Obtain the type information of the union discriminator.
- public FieldInfo get_field (int n)
Obtain the type information for field with specified index.
- public FunctionInfo get_method (int n)
Obtain the type information for method with specified index.
- public int get_n_fields ()
Obtain the number of fields this union has.
- public int get_n_methods ()
Obtain the number of methods this union has.
- public size_t get_size ()
Obtain the total size of the union.
- public bool is_discriminated ()
Return true if this union contains discriminator field.
Inherited Members:
All known members inherited from class GI.BaseInfo