// Filename: cppClassTemplateParameter.h // Created by: drose (28Oct99) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software license. You should have received a copy of this license // along with this source code; you will also find a current copy of // the license at http://www.panda3d.org/license.txt . // // To contact the maintainers of this program write to // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// #ifndef CPPCLASSTEMPLATEPARAMETER_H #define CPPCLASSTEMPLATEPARAMETER_H #include #include "cppType.h" class CPPIdentifier; /////////////////////////////////////////////////////////////////// // Class : CPPClassTemplateParameter // Description : //////////////////////////////////////////////////////////////////// class CPPClassTemplateParameter : public CPPType { public: CPPClassTemplateParameter(CPPIdentifier *ident, CPPType *default_type = NULL); virtual bool is_fully_specified() const; virtual void output(ostream &out, int indent_level, CPPScope *scope, bool complete) const; virtual SubType get_subtype() const; virtual CPPClassTemplateParameter *as_class_template_parameter(); CPPIdentifier *_ident; CPPType *_default_type; protected: virtual bool is_equal(const CPPDeclaration *other) const; virtual bool is_less(const CPPDeclaration *other) const; }; #endif