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

dtool/src/cppparser/cppFunctionGroup.h

Go to the documentation of this file.
00001 // Filename: cppFunctionGroup.h
00002 // Created by:  drose (11Nov99)
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 CPPFUNCTIONGROUP_H
00020 #define CPPFUNCTIONGROUP_H
00021 
00022 #include <dtoolbase.h>
00023 
00024 #include "cppDeclaration.h"
00025 
00026 class CPPInstance;
00027 
00028 ///////////////////////////////////////////////////////////////////
00029 //       Class : CPPFunctionGroup
00030 // Description : This class is simply a container for one or more
00031 //               CPPInstances for functions of the same name.  It's
00032 //               handy for storing in the CPPScope, so that
00033 //               CPPScope::find_symbol() can return a single pointer
00034 //               to indicate all of the functions that may share a
00035 //               given name.
00036 ////////////////////////////////////////////////////////////////////
00037 class CPPFunctionGroup : public CPPDeclaration {
00038 public:
00039   CPPFunctionGroup(const string &name);
00040   ~CPPFunctionGroup();
00041 
00042   CPPType *get_return_type() const;
00043 
00044   virtual void output(ostream &out, int indent_level, CPPScope *scope,
00045                       bool complete) const;
00046   virtual SubType get_subtype() const;
00047 
00048   virtual CPPFunctionGroup *as_function_group();
00049 
00050   typedef vector<CPPInstance *> Instances;
00051   Instances _instances;
00052   string _name;
00053 };
00054 
00055 #endif
00056 
00057 

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