paramNodePath.I 995 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file paramNodePath.I
  10. * @author rdb
  11. * @date 2015-02-25
  12. */
  13. /**
  14. * Creates a new ParamNodePath storing the given node path object.
  15. */
  16. INLINE ParamNodePath::
  17. ParamNodePath(const NodePath &node_path) :
  18. _node_path(node_path)
  19. {
  20. }
  21. /**
  22. * Creates a new ParamNodePath storing the given node path object.
  23. */
  24. INLINE ParamNodePath::
  25. ParamNodePath(NodePath &&node_path) noexcept :
  26. _node_path(std::move(node_path))
  27. {
  28. }
  29. /**
  30. * Returns NodePath::get_class_type().
  31. */
  32. INLINE TypeHandle ParamNodePath::
  33. get_value_type() const {
  34. return NodePath::get_class_type();
  35. }
  36. /**
  37. * Retrieves the NodePath stored in the parameter.
  38. */
  39. INLINE const NodePath &ParamNodePath::
  40. get_value() const {
  41. return _node_path;
  42. }