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

dtool/src/cppparser/cppArrayType.h

Go to the documentation of this file.
00001 // Filename: cppArrayType.h
00002 // Created by:  drose (19Oct99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef CPPARRAYTYPE_H
00020 #define CPPARRAYTYPE_H
00021 
00022 #include <dtoolbase.h>
00023 
00024 #include "cppType.h"
00025 
00026 class CPPExpression;
00027 
00028 ///////////////////////////////////////////////////////////////////
00029 //       Class : CPPArrayType
00030 // Description :
00031 ////////////////////////////////////////////////////////////////////
00032 class CPPArrayType : public CPPType {
00033 public:
00034   CPPArrayType(CPPType *element_type, CPPExpression *bounds);
00035 
00036   CPPType *_element_type;
00037   CPPExpression *_bounds;
00038 
00039   virtual bool is_fully_specified() const;
00040   virtual CPPDeclaration *substitute_decl(SubstDecl &subst,
00041                                           CPPScope *current_scope,
00042                                           CPPScope *global_scope);
00043 
00044   virtual CPPType *resolve_type(CPPScope *current_scope,
00045                                 CPPScope *global_scope);
00046   virtual bool is_tbd() const;
00047   virtual bool is_equivalent(const CPPType &other) const;
00048 
00049   virtual void output(ostream &out, int indent_level, CPPScope *scope,
00050                       bool complete) const;
00051   virtual void output_instance(ostream &out, int indent_level,
00052                                CPPScope *scope,
00053                                bool complete, const string &prename,
00054                                const string &name) const;
00055 
00056   virtual SubType get_subtype() const;
00057 
00058   virtual CPPArrayType *as_array_type();
00059 
00060 protected:
00061   virtual bool is_equal(const CPPDeclaration *other) const;
00062   virtual bool is_less(const CPPDeclaration *other) const;
00063 };
00064 
00065 #endif

Generated on Thu May 1 22:12:49 2003 for DTool by doxygen1.3