cecko
Public Member Functions | List of all members
cecko::CIAbstractType Class Referenceabstract

Abstract type descriptor. More...

#include <cktables.hpp>

Inheritance diagram for cecko::CIAbstractType:
[legend]
Collaboration diagram for cecko::CIAbstractType:
[legend]

Public Member Functions

virtual CKIRTypeObs get_ir () const =0
 Get LLVM type descriptor.
 
virtual CKIRConstantObs get_null_value () const
 Get LLVM null value.
 
Determining the kind of the type
virtual bool is_void () const
 Built-in "void" type.
 
virtual bool is_bool () const
 Built-in "_Bool" type.
 
virtual bool is_char () const
 Built-in "char" type.
 
virtual bool is_int () const
 Built-in "int" type.
 
virtual bool is_enum () const
 Enumeration type.
 
virtual bool is_array () const
 Array type.
 
virtual bool is_function () const
 Function type.
 
virtual bool is_pointer () const
 Pointer type.
 
virtual bool is_struct () const
 Struct type.
 
Pointer properties
virtual CKTypeRefSafePack get_pointer_points_to () const
 The (optionally const) type a pointer type points to.
 
Function properties
virtual CKTypeSafeObs get_function_return_type () const
 The return type of a function type.
 
virtual CKTypeSafeObs get_function_arg_type (std::size_t ix) const
 The selected argument type of a function type.
 
virtual std::size_t get_function_arg_count () const
 The number of arguments of a function type.
 
virtual bool is_function_variadic () const
 Check whether a function type is variadic.
 
Array properties
virtual CKTypeSafeObs get_array_element_type () const
 The element type of an array.
 
virtual CKIRConstantIntObs get_array_size () const
 The size of an array.
 
Struct properties
virtual CKStructElementSafeObs find_struct_element (const CIName &) const
 Find a struct type element by name.
 

Detailed Description

Abstract type descriptor.


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