Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Function_type_maker Class Reference

Helper class to construct function types. More...

#include <type_rep.h>

List of all members.

Public Methods

 Function_type_maker ()
 Start making a function type. More...

void add_parameter (Type t)
 Add a parameter of type /t/ to the function. More...

void add_ellipsis ()
 Add ellipsis pseudo-type to the function. More...

Type make_function_type (Type return_type) const
 Given a type T, return type function-taking-args-so-far-returning-T. More...


Private Attributes

std::string types


Detailed Description

Helper class to construct function types.

Definition at line 270 of file type_rep.h.


Constructor & Destructor Documentation

Function_type_maker::Function_type_maker  
 

Start making a function type.

Definition at line 948 of file type_rep.cc.


Member Function Documentation

void Function_type_maker::add_ellipsis  
 

Add ellipsis pseudo-type to the function.

Definition at line 978 of file type_rep.cc.

References types.

Referenced by Function_declaration_reader::add_ellipsis().

void Function_type_maker::add_parameter Type    t
 

Add a parameter of type /t/ to the function.

Definition at line 957 of file type_rep.cc.

References Type::encode_qualifiers(), Type::get_basis_type(), Type::get_kind(), Type::get_unqualified_type(), Type::k_Array, Type::k_Function, Type::make_pointer_type(), and types.

Referenced by Overload_resolver::add_builtin_incdec(), Function_declaration_reader::declare_variable(), Simple_declaration_reader::declare_variable(), make_binary_function_type(), and make_unary_function_type().

Type Function_type_maker::make_function_type Type    return_type const
 

Given a type T, return type function-taking-args-so-far-returning-T.

Definition at line 987 of file type_rep.cc.

References Type::encode_qualifiers(), and types.

Referenced by Overload_resolver::add_builtin_incdec(), Simple_declaration_reader::declare_variable(), make_binary_function_type(), make_unary_function_type(), and Declaration_reader::parse_declarator_internal().


Member Data Documentation

std::string Function_type_maker::types [private]
 

Definition at line 271 of file type_rep.h.

Referenced by add_ellipsis(), add_parameter(), and make_function_type().


The documentation for this class was generated from the following files:
Generated on Mon Feb 10 17:35:38 2003 for VFiasco Semantics Compiler by doxygen1.2.15