cppTypedef.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Filename: cppTypedef.h
  2. // Created by: drose (19Oct99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. #ifndef CPPTYPEDEF_H
  15. #define CPPTYPEDEF_H
  16. #include "dtoolbase.h"
  17. #include "cppInstance.h"
  18. ///////////////////////////////////////////////////////////////////
  19. // Class : CPPTypedef
  20. // Description :
  21. ////////////////////////////////////////////////////////////////////
  22. class CPPTypedef : public CPPInstance {
  23. public:
  24. CPPTypedef(CPPInstance *instance, bool global);
  25. virtual CPPDeclaration *substitute_decl(SubstDecl &subst,
  26. CPPScope *current_scope,
  27. CPPScope *global_scope);
  28. virtual void output(ostream &out, int indent_level, CPPScope *scope,
  29. bool complete) const;
  30. virtual SubType get_subtype() const;
  31. virtual CPPTypedef *as_typedef();
  32. };
  33. #endif