parameterRemapReferenceToPointer.h 1.4 KB

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