Panda3D
weakNodePath.cxx
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 
15 #include "weakNodePath.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: WeakNodePath::output
19 // Access: Public
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 void WeakNodePath::
23 output(ostream &out) const {
24  if (was_deleted()) {
25  out << "deleted";
26  } else {
27  get_node_path().output(out);
28  }
29 }
NodePath get_node_path() const
Returns the NodePath held within this object.
Definition: weakNodePath.I:99
void output(ostream &out) const
Writes a sensible description of the NodePath to the indicated output stream.
Definition: nodePath.cxx:820
bool was_deleted() const
Returns true if the NodePath we were referencing has been quietly deleted outside of the WeakNodePath...
Definition: weakNodePath.I:89