#include <cppInstance.h>
Inheritance diagram for CPPInstance:
Public Types | |
enum | StorageClass { SC_static = 0x001, SC_extern = 0x002, SC_c_binding = 0x004, SC_virtual = 0x008, SC_inline = 0x010, SC_explicit = 0x020, SC_register = 0x040, SC_pure_virtual = 0x080, SC_volatile = 0x100, SC_mutable = 0x200, SC_inherited_virtual = 0x400 } |
Public Member Functions | |
CPPInstance (CPPType *type, const string &name, int storage_class=0) | |
CPPInstance (CPPType *type, CPPIdentifier *ident, int storage_class=0) | |
CPPInstance (CPPType *type, CPPInstanceIdentifier *ii, int storage_class, const CPPFile &file) | |
CPPInstance (const CPPInstance ©) | |
~CPPInstance () | |
bool | operator== (const CPPInstance &other) const |
bool | operator!= (const CPPInstance &other) const |
bool | operator< (const CPPInstance &other) const |
void | set_initializer (CPPExpression *initializer) |
bool | is_scoped () const |
CPPScope * | get_scope (CPPScope *current_scope, CPPScope *global_scope, CPPPreprocessor *error_sink=NULL) const |
string | get_simple_name () const |
string | get_local_name (CPPScope *scope=NULL) const |
string | get_fully_scoped_name () const |
void | check_for_constructor (CPPScope *current_scope, CPPScope *global_scope) |
virtual CPPDeclaration * | instantiate (const CPPTemplateParameterList *actual_params, CPPScope *current_scope, CPPScope *global_scope, CPPPreprocessor *error_sink=NULL) const |
virtual bool | is_fully_specified () const |
virtual CPPDeclaration * | substitute_decl (SubstDecl &subst, CPPScope *current_scope, CPPScope *global_scope) |
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 SubType | get_subtype () const |
virtual CPPInstance * | as_instance () |
Static Public Member Functions | |
CPPInstance * | make_typecast_function (CPPInstance *inst, CPPIdentifier *ident, CPPParameterList *parameters, int function_flags) |
Public Attributes | |
CPPType * | _type |
CPPIdentifier * | _ident |
CPPExpression * | _initializer |
int | _storage_class |
Private Types | |
typedef map< const CPPTemplateParameterList *, CPPInstance *, CPPTPLCompare > | Instantiations |
Private Attributes | |
Instantiations | _instantiations |
|
Reimplemented from CPPDeclaration. Definition at line 111 of file cppInstance.h. |
|
Definition at line 43 of file cppInstance.h. |
|
Definition at line 41 of file cppInstance.cxx. References _initializer, NULL, and type. Referenced by instantiate(), make_typecast_function(), CPPTypedef::substitute_decl(), and substitute_decl(). |
|
Definition at line 56 of file cppInstance.cxx. References _initializer, NULL, and type. |
|
Definition at line 74 of file cppInstance.cxx. References CPPInstanceIdentifier::_ident, _ident, _initializer, _storage_class, _type, NULL, type, and CPPInstanceIdentifier::unroll_type(). |
|
Definition at line 92 of file cppInstance.cxx. |
|
Definition at line 108 of file cppInstance.cxx. |
|
Reimplemented from CPPDeclaration. Definition at line 563 of file cppInstance.cxx. |
|
Definition at line 326 of file cppInstance.cxx. References CPPFunctionType::_flags, CPPFunctionType::_parameters, _type, CPPDeclaration::as_function_type(), current_scope, CPPFunctionType::F_constructor, CPPFunctionType::F_destructor, CPPScope::get_local_name(), get_local_name(), get_scope(), global_scope, CPPType::new_type(), NULL, and CPPSimpleType::T_void. Referenced by CPPScope::handle_declaration(). |
|
Definition at line 310 of file cppInstance.cxx. References _ident, CPPIdentifier::get_fully_scoped_name(), and NULL. |
|
|
Definition at line 267 of file cppInstance.cxx. References _ident, current_scope, CPPIdentifier::get_scope(), global_scope, and NULL. Referenced by check_for_constructor(), CPPScope::handle_declaration(), InterrogateBuilder::scan_element(), and InterrogateBuilder::scan_function(). |
|
Definition at line 282 of file cppInstance.cxx. References _ident, CPPIdentifier::get_simple_name(), and NULL. Referenced by CPPScope::add_enum_value(), InterrogateBuilder::define_enum_type(), InterrogateBuilder::define_method(), CPPScope::handle_declaration(), FunctionRemap::setup_properties(), and InterfaceMakerPythonObj::write_function_instance(). |
|
Implements CPPDeclaration. Reimplemented in CPPTypeDeclaration, and CPPTypedef. Definition at line 553 of file cppInstance.cxx. References CPPDeclaration::ST_instance. |
|
Reimplemented from CPPDeclaration. Definition at line 364 of file cppInstance.cxx. References _ident, _instantiations, CPPIdentifier::_names, CPPTemplateScope::_parameters, CPPDeclaration::_template_scope, assert, CPPTemplateParameterList::build_subst_decl(), CPPInstance(), current_scope, CPPIdentifier::get_local_name(), CPPDeclaration::get_template_scope(), global_scope, CPPDeclaration::is_template(), NULL, CPPIdentifier::substitute_decl(), and CPPPreprocessor::warning(). |
|
Reimplemented from CPPDeclaration. Definition at line 421 of file cppInstance.cxx. References _ident, _initializer, _type, CPPDeclaration::is_fully_specified(), CPPIdentifier::is_fully_specified(), and NULL. |
|
Definition at line 253 of file cppInstance.cxx. References _ident, CPPIdentifier::is_scoped(), and NULL. Referenced by InterrogateBuilder::scan_element(), and InterrogateBuilder::scan_function(). |
|
Definition at line 122 of file cppInstance.cxx. References _type, CPPInstance(), CPPFunctionType::F_operator_typecast, CPPType::new_type(), and type. |
|
Definition at line 177 of file cppInstance.cxx. References operator==(). |
|
Definition at line 187 of file cppInstance.cxx. References _ident, _initializer, _storage_class, _type, and NULL. |
|
Definition at line 141 of file cppInstance.cxx. References _ident, _initializer, _storage_class, _type, and NULL. Referenced by operator!=(). |
|
|
Implements CPPDeclaration. Reimplemented in CPPTypeDeclaration, and CPPTypedef. Definition at line 478 of file cppInstance.cxx. Referenced by InterrogateBuilder::get_function(), InterrogateBuilder::get_getter(), InterrogateBuilder::get_setter(), CPPTypedef::output(), and FunctionRemap::write_orig_prototype(). |
|
Definition at line 233 of file cppInstance.cxx. References _initializer, _storage_class, _type, CPPDeclaration::as_function_type(), NULL, and SC_pure_virtual. |
|
Reimplemented in CPPTypeDeclaration, and CPPTypedef. Definition at line 438 of file cppInstance.cxx. References _initializer, _type, CPPDeclaration::as_expression(), CPPDeclaration::as_type(), CPPInstance(), current_scope, global_scope, NULL, CPPExpression::substitute_decl(), and CPPDeclaration::substitute_decl(). Referenced by CPPTypedef::substitute_decl(), and CPPTypeDeclaration::substitute_decl(). |
|
|
|
Reimplemented from CPPDeclaration. Definition at line 112 of file cppInstance.h. Referenced by instantiate(). |
|
|