parameterRemapReferenceToPointer.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Filename: parameterRemapReferenceToPointer.h
  2. // Created by: drose (01Aug00)
  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 PARAMETERREMAPREFERENCETOPOINTER_H
  15. #define PARAMETERREMAPREFERENCETOPOINTER_H
  16. #include "dtoolbase.h"
  17. #include "parameterRemap.h"
  18. ////////////////////////////////////////////////////////////////////
  19. // Class : ParameterRemapReferenceToPointer
  20. // Description : A ParameterRemap class that handles remapping a
  21. // reference (or a const reference) parameter to a
  22. // pointer (or const pointer) parameter.
  23. ////////////////////////////////////////////////////////////////////
  24. class ParameterRemapReferenceToPointer : public ParameterRemap {
  25. public:
  26. ParameterRemapReferenceToPointer(CPPType *orig_type);
  27. virtual void pass_parameter(ostream &out, const string &variable_name);
  28. virtual string get_return_expr(const string &expression);
  29. };
  30. #endif