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

CPPEnumType Class Reference

#include <cppEnumType.h>

Inheritance diagram for CPPEnumType:

CPPExtensionType CPPType CPPDeclaration List of all members.

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 CPPDeclarationsubstitute_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

Member Typedef Documentation

typedef vector<CPPInstance *> CPPEnumType::Elements
 

Definition at line 57 of file cppEnumType.h.


Constructor & Destructor Documentation

CPPEnumType::CPPEnumType CPPIdentifier ident,
CPPScope current_scope,
const CPPFile file
 

Definition at line 34 of file cppEnumType.cxx.

References current_scope.

Referenced by substitute_decl().


Member Function Documentation

void CPPEnumType::add_element const string &  name,
CPPScope scope,
CPPExpression value = (CPPExpression *) NULL
 

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.

CPPEnumType * CPPEnumType::as_enum_type  )  [virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 150 of file cppEnumType.cxx.

CPPDeclaration::SubType CPPEnumType::get_subtype  )  const [virtual]
 

Reimplemented from CPPExtensionType.

Definition at line 140 of file cppEnumType.cxx.

References CPPDeclaration::ST_enum.

bool CPPEnumType::is_incomplete  )  const [virtual]
 

Reimplemented from CPPExtensionType.

Definition at line 64 of file cppEnumType.cxx.

void CPPEnumType::output ostream out,
int  indent_level,
CPPScope scope,
bool  complete
const [virtual]
 

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.

CPPDeclaration * CPPEnumType::substitute_decl SubstDecl subst,
CPPScope current_scope,
CPPScope global_scope
[virtual]
 

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().


Member Data Documentation

Elements CPPEnumType::_elements
 

Definition at line 58 of file cppEnumType.h.

Referenced by add_element(), InterrogateBuilder::define_enum_type(), and output().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:47 2003 for DTool by doxygen1.3