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

CPPArrayType Class Reference

#include <cppArrayType.h>

Inheritance diagram for CPPArrayType:

CPPType CPPDeclaration List of all members.

Public Member Functions

 CPPArrayType (CPPType *element_type, CPPExpression *bounds)
virtual bool is_fully_specified () const
virtual CPPDeclarationsubstitute_decl (SubstDecl &subst, CPPScope *current_scope, CPPScope *global_scope)
virtual CPPTyperesolve_type (CPPScope *current_scope, CPPScope *global_scope)
virtual bool is_tbd () const
virtual bool is_equivalent (const CPPType &other) const
virtual void output (ostream &out, int indent_level, CPPScope *scope, bool complete) const
virtual void output_instance (ostream &out, int indent_level, CPPScope *scope, bool complete, const string &prename, const string &name) const
virtual SubType get_subtype () const
virtual CPPArrayType * as_array_type ()

Public Attributes

CPPType_element_type
CPPExpression_bounds

Protected Member Functions

virtual bool is_equal (const CPPDeclaration *other) const
virtual bool is_less (const CPPDeclaration *other) const

Constructor & Destructor Documentation

CPPArrayType::CPPArrayType CPPType element_type,
CPPExpression bounds
 

Definition at line 29 of file cppArrayType.cxx.

Referenced by resolve_type(), and substitute_decl().


Member Function Documentation

CPPArrayType * CPPArrayType::as_array_type  )  [virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 194 of file cppArrayType.cxx.

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

Implements CPPDeclaration.

Definition at line 184 of file cppArrayType.cxx.

References CPPDeclaration::ST_array.

bool CPPArrayType::is_equal const CPPDeclaration other  )  const [protected, virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 205 of file cppArrayType.cxx.

References _bounds, _element_type, assert, and NULL.

bool CPPArrayType::is_equivalent const CPPType other  )  const [virtual]
 

Reimplemented from CPPType.

Definition at line 93 of file cppArrayType.cxx.

References _element_type, CPPType::is_equivalent(), and NULL.

bool CPPArrayType::is_fully_specified  )  const [virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 45 of file cppArrayType.cxx.

References _element_type, and CPPDeclaration::is_fully_specified().

bool CPPArrayType::is_less const CPPDeclaration other  )  const [protected, virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 229 of file cppArrayType.cxx.

References _bounds, _element_type, assert, and NULL.

bool CPPArrayType::is_tbd  )  const [virtual]
 

Reimplemented from CPPType.

Definition at line 79 of file cppArrayType.cxx.

References _element_type, and CPPType::is_tbd().

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

Implements CPPDeclaration.

Definition at line 142 of file cppArrayType.cxx.

References output_instance().

void CPPArrayType::output_instance ostream out,
int  indent_level,
CPPScope scope,
bool  complete,
const string &  prename,
const string &  name
const [virtual]
 

Reimplemented from CPPType.

Definition at line 163 of file cppArrayType.cxx.

References _bounds, _element_type, NULL, CPPType::output_instance(), and ostringstream::str().

Referenced by output().

CPPType * CPPArrayType::resolve_type CPPScope current_scope,
CPPScope global_scope
[virtual]
 

Reimplemented from CPPType.

Definition at line 59 of file cppArrayType.cxx.

References _element_type, CPPArrayType(), current_scope, global_scope, CPPType::new_type(), and CPPType::resolve_type().

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

Definition at line 108 of file cppArrayType.cxx.

References _bounds, _element_type, CPPDeclaration::as_array_type(), CPPDeclaration::as_expression(), CPPDeclaration::as_type(), CPPArrayType(), current_scope, global_scope, CPPType::new_type(), NULL, CPPExpression::substitute_decl(), and CPPDeclaration::substitute_decl().


Member Data Documentation

CPPExpression* CPPArrayType::_bounds
 

Definition at line 37 of file cppArrayType.h.

Referenced by is_equal(), is_less(), output_instance(), and substitute_decl().

CPPType* CPPArrayType::_element_type
 

Definition at line 36 of file cppArrayType.h.

Referenced by CPPExpression::determine_type(), InterrogateBuilder::in_ignoreinvolved(), is_equal(), is_equivalent(), is_fully_specified(), is_less(), is_tbd(), output_instance(), resolve_type(), and substitute_decl().


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