parameterRemapReferenceToConcrete.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Filename: parameterRemapReferenceToConcrete.h
  2. // Created by: drose (04Aug00)
  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 PARAMETERREMAPREFERENCETOCONCRETE_H
  19. #define PARAMETERREMAPREFERENCETOCONCRETE_H
  20. #include <dtoolbase.h>
  21. #include "parameterRemap.h"
  22. ////////////////////////////////////////////////////////////////////
  23. // Class : ParameterRemapReferenceToConcrete
  24. // Description : A ParameterRemap class that handles remapping a
  25. // const reference parameter to a concrete. This only
  26. // makes sense when we're talking about a const
  27. // reference to a simple type.
  28. ////////////////////////////////////////////////////////////////////
  29. class ParameterRemapReferenceToConcrete : public ParameterRemap {
  30. public:
  31. ParameterRemapReferenceToConcrete(CPPType *orig_type);
  32. virtual void pass_parameter(ostream &out, const string &variable_name);
  33. virtual string get_return_expr(const string &expression);
  34. };
  35. #endif