#include <cppEnumType.h>
Inheritance diagram for CPPEnumType:
Public Types | |
typedef vector< CPPInstance * > | Elements |
Public Member Functions | |
CPPEnumType (CPPIdentifier *ident, CPPScope *current_scope, const CPPFile &file) | |
void | add_element (const string &name, CPPScope *scope, CPPExpression *value=(CPPExpression *) NULL) |
virtual bool | is_incomplete () 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 |
virtual SubType | get_subtype () const |
virtual CPPEnumType * | as_enum_type () |
Public Attributes | |
Elements | _elements |
|
Definition at line 57 of file cppEnumType.h. |
|
Definition at line 34 of file cppEnumType.cxx. References current_scope. Referenced by substitute_decl(). |
|
Definition at line 46 of file cppEnumType.cxx. References _elements, CPPInstance::_initializer, CPPScope::add_enum_value(), CPPSimpleType::F_unsigned, CPPType::new_type(), CPPSimpleType::T_int, and type. |
|
Reimplemented from CPPDeclaration. Definition at line 150 of file cppEnumType.cxx. |
|
Reimplemented from CPPExtensionType. Definition at line 140 of file cppEnumType.cxx. References CPPDeclaration::ST_enum. |
|
Reimplemented from CPPExtensionType. Definition at line 64 of file cppEnumType.cxx. |
|
Reimplemented from CPPExtensionType. Definition at line 103 of file cppEnumType.cxx. References _elements, CPPExtensionType::_ident, CPPExtensionType::_type, CPPType::_typedefs, CPPIdentifier::get_local_name(), indent(), and NULL. |
|
Reimplemented from CPPExtensionType. Definition at line 74 of file cppEnumType.cxx. References CPPExtensionType::_ident, CPPDeclaration::as_enum_type(), CPPEnumType(), current_scope, global_scope, CPPType::new_type(), NULL, and CPPIdentifier::substitute_decl(). |
|
Definition at line 58 of file cppEnumType.h. Referenced by add_element(), InterrogateBuilder::define_enum_type(), and output(). |