Ruminate
Type introspection for C
 All Classes Files Functions Enumerations Enumerator Macros Pages
RBuiltinType Struct Reference

An opaque struct representing a builtin type. More...

Inheritance diagram for RBuiltinType:
Inheritance graph

Public Member Functions

RBuiltinTypeId r_builtin_type_id (RBuiltinType *type, GError **error)
 Get the builtin type identifier of this builtin type. More...
 
bool r_builtin_type_is_signed (RBuiltinType *type, GError **error)
 Determine if this type is signed. More...
 
bool r_builtin_type_is_unsigned (RBuiltinType *type, GError **error)
 Determine if this type is unsigned. More...
 
- Public Member Functions inherited from RType
RTypeId r_type_id (RType *type, GError **error)
 Get the type identifier of this type. More...
 
RStringr_type_name (RType *type, GError **error)
 Get the name of this type. More...
 
RTyper_type_ref (RType *type)
 Increase the reference count of this type. More...
 
void r_type_unref (RType *type)
 Decrease the reference count of this. More...
 
RTyper_type_pointer (RType *type, GError **error)
 Get an RType representing a pointer to this type. More...
 

Detailed Description

An opaque struct representing a builtin type.

Member Function Documentation

RBuiltinTypeId r_builtin_type_id ( RBuiltinType type,
GError **  error 
)

Get the builtin type identifier of this builtin type.

The RBuiltinTypeId of this RBuiltinType represents the real type of this builtin type.

Returns
the real type of this builtin type
Parameters
[in]typethe builtin type to retrieve the id of
[out]errorsee errors.h
bool r_builtin_type_is_signed ( RBuiltinType type,
GError **  error 
)

Determine if this type is signed.

Note that the char type can be neither signed nor unsigned.

Returns
whether or not this type is signed
Parameters
[in]typethe type to determine the signedness of
[out]errorsee errors.h
bool r_builtin_type_is_unsigned ( RBuiltinType type,
GError **  error 
)

Determine if this type is unsigned.

Note that the char type can be neither signed nor unsigned.

Returns
whether or not this type is unsigned
Parameters
[in]typethe type to determine the signedness of
[out]errorsee errors.h

The documentation for this struct was generated from the following file: