cppReferenceType.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Filename: cppReferenceType.h
  2. // Created by: drose (19Oct99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef CPPREFERENCETYPE_H
  19. #define CPPREFERENCETYPE_H
  20. #include <dtoolbase.h>
  21. #include "cppType.h"
  22. ///////////////////////////////////////////////////////////////////
  23. // Class : CPPReferenceType
  24. // Description :
  25. ////////////////////////////////////////////////////////////////////
  26. class CPPReferenceType : public CPPType {
  27. public:
  28. CPPReferenceType(CPPType *pointing_at);
  29. CPPType *_pointing_at;
  30. virtual bool is_fully_specified() const;
  31. virtual CPPDeclaration *substitute_decl(SubstDecl &subst,
  32. CPPScope *current_scope,
  33. CPPScope *global_scope);
  34. virtual CPPType *resolve_type(CPPScope *current_scope,
  35. CPPScope *global_scope);
  36. virtual bool is_tbd() const;
  37. virtual bool is_equivalent(const CPPType &other) const;
  38. virtual void output(ostream &out, int indent_level, CPPScope *scope,
  39. bool complete) const;
  40. virtual void output_instance(ostream &out, int indent_level,
  41. CPPScope *scope,
  42. bool complete, const string &prename,
  43. const string &name) const;
  44. virtual SubType get_subtype() const;
  45. virtual CPPReferenceType *as_reference_type();
  46. protected:
  47. virtual bool is_equal(const CPPDeclaration *other) const;
  48. virtual bool is_less(const CPPDeclaration *other) const;
  49. };
  50. #endif