parameterRemapThis.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Filename: parameterRemapThis.h
  2. // Created by: drose (02Aug00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, 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://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef PARAMETERREMAPTHIS_H
  19. #define PARAMETERREMAPTHIS_H
  20. #include "dtoolbase.h"
  21. #include "parameterRemap.h"
  22. class CPPType;
  23. ////////////////////////////////////////////////////////////////////
  24. // Class : ParameterRemapThis
  25. // Description : A ParameterRemap class that represents a generated
  26. // "this" parameter.
  27. ////////////////////////////////////////////////////////////////////
  28. class ParameterRemapThis : public ParameterRemap {
  29. public:
  30. ParameterRemapThis(CPPType *type, bool is_const);
  31. virtual void pass_parameter(ostream &out, const string &variable_name);
  32. virtual string get_return_expr(const string &expression);
  33. virtual bool is_this();
  34. };
  35. #endif