#include <cppFunctionType.h>
Inheritance diagram for CPPFunctionType:
Public Types | |
enum | Flags { F_const_method = 0x01, F_operator_typecast = 0x02, F_constructor = 0x04, F_destructor = 0x08, F_method_pointer = 0x10 } |
Public Member Functions | |
CPPFunctionType (CPPType *return_type, CPPParameterList *parameters, int flags) | |
CPPFunctionType (const CPPFunctionType ©) | |
void | operator= (const CPPFunctionType ©) |
virtual bool | is_fully_specified () const |
virtual CPPDeclaration * | substitute_decl (SubstDecl &subst, CPPScope *current_scope, CPPScope *global_scope) |
virtual CPPType * | resolve_type (CPPScope *current_scope, CPPScope *global_scope) |
virtual bool | is_tbd () const |
virtual void | output (ostream &out, int indent_level, CPPScope *scope, bool complete) const |
void | output (ostream &out, int indent_level, CPPScope *scope, bool complete, int num_default_parameters) const |
virtual void | output_instance (ostream &out, int indent_level, CPPScope *scope, bool complete, const string &prename, const string &name) const |
void | output_instance (ostream &out, int indent_level, CPPScope *scope, bool complete, const string &prename, const string &name, int num_default_parameters) const |
int | get_num_default_parameters () const |
virtual SubType | get_subtype () const |
virtual CPPFunctionType * | as_function_type () |
bool | is_equivalent_function (const CPPFunctionType &other) const |
Public Attributes | |
CPPType * | _return_type |
CPPParameterList * | _parameters |
int | _flags |
CPPIdentifier * | _class_owner |
Protected Member Functions | |
virtual bool | is_equal (const CPPDeclaration *other) const |
virtual bool | is_less (const CPPDeclaration *other) const |
|
Definition at line 35 of file cppFunctionType.h. |
|
Definition at line 31 of file cppFunctionType.cxx. References _class_owner, CPPParameterList::_parameters, _parameters, NULL, and CPPSimpleType::T_void. Referenced by resolve_type(), and substitute_decl(). |
|
Definition at line 57 of file cppFunctionType.cxx. |
|
Reimplemented from CPPDeclaration. Definition at line 292 of file cppFunctionType.cxx. |
|
Definition at line 259 of file cppFunctionType.cxx. References CPPParameterList::_parameters, _parameters, count, NULL, and params. |
|
Implements CPPDeclaration. Definition at line 282 of file cppFunctionType.cxx. References CPPDeclaration::ST_function. |
|
Reimplemented from CPPDeclaration. Definition at line 328 of file cppFunctionType.cxx. References _flags, _parameters, _return_type, assert, and NULL. |
|
Definition at line 305 of file cppFunctionType.cxx. References _flags, _parameters, _return_type, CPPParameterList::is_equivalent(), and CPPType::is_equivalent(). Referenced by CPPStructType::get_virtual_funcs(). |
|
Reimplemented from CPPDeclaration. Definition at line 89 of file cppFunctionType.cxx. References _parameters, _return_type, CPPParameterList::is_fully_specified(), and CPPDeclaration::is_fully_specified(). |
|
Reimplemented from CPPDeclaration. Definition at line 353 of file cppFunctionType.cxx. References _flags, _parameters, _return_type, assert, and NULL. |
|
Reimplemented from CPPType. Definition at line 159 of file cppFunctionType.cxx. References _parameters, _return_type, CPPParameterList::is_tbd(), and CPPType::is_tbd(). |
|
Definition at line 72 of file cppFunctionType.cxx. References _class_owner, _flags, _parameters, and _return_type. |
|
Definition at line 187 of file cppFunctionType.cxx. References _flags, _parameters, _return_type, F_const_method, CPPParameterList::output(), and CPPDeclaration::output(). |
|
Implements CPPDeclaration. Definition at line 172 of file cppFunctionType.cxx. |
|
Definition at line 224 of file cppFunctionType.cxx. References _flags, _parameters, _return_type, F_const_method, F_constructor, F_destructor, CPPParameterList::output(), CPPType::output_instance(), and ostringstream::str(). |
|
Reimplemented from CPPType. Definition at line 207 of file cppFunctionType.cxx. |
|
Reimplemented from CPPType. Definition at line 136 of file cppFunctionType.cxx. References _parameters, _return_type, CPPFunctionType(), current_scope, global_scope, CPPType::new_type(), params, CPPParameterList::resolve_type(), and CPPType::resolve_type(). |
|
Definition at line 101 of file cppFunctionType.cxx. References _parameters, _return_type, CPPDeclaration::as_function_type(), CPPDeclaration::as_type(), CPPFunctionType(), current_scope, global_scope, CPPType::new_type(), CPPParameterList::substitute_decl(), and CPPDeclaration::substitute_decl(). |
|
Definition at line 83 of file cppFunctionType.h. Referenced by CPPFunctionType(), operator=(), CPPPointerType::output_instance(), and CPPInstanceIdentifier::r_unroll_type(). |
|
|
|