weakNodePath.cxx 880 B

1234567891011121314151617181920212223242526272829
  1. // Filename: weakNodePath.cxx
  2. // Created by: drose (29Sep04)
  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. #include "weakNodePath.h"
  15. ////////////////////////////////////////////////////////////////////
  16. // Function: WeakNodePath::output
  17. // Access: Public
  18. // Description:
  19. ////////////////////////////////////////////////////////////////////
  20. void WeakNodePath::
  21. output(ostream &out) const {
  22. if (was_deleted()) {
  23. out << "deleted";
  24. } else {
  25. get_node_path().output(out);
  26. }
  27. }