22 WeakNodePath(
const NodePath &node_path) :
23 _head(node_path._head),
36 _backup_key(copy._backup_key)
54 INLINE
void WeakNodePath::
55 operator = (
const NodePath &node_path) {
56 _head = node_path._head;
65 INLINE
void WeakNodePath::
68 _backup_key = copy._backup_key;
102 result._head = _head;
114 return _head->get_node();
126 return _head == other._head;
136 return _head != other._head;
150 return _head < other._head;
170 if (_head != other._head) {
171 return _head < other._head ? -1 : 1;
185 return _head == other._head;
195 return _head != other._head;
209 return _head < other._head;
229 if (_head != other._head) {
230 return _head < other._head ? -1 : 1;
249 INLINE ostream &operator << (ostream &out,
const WeakNodePath &node_path) {
250 node_path.output(out);
A basic node of the scene graph or data graph.
int get_key() const
Returns the same values as NodePath::get_key().
bool is_empty() const
Returns true if the NodePath contains no nodes, or if it has been deleted.
NodePath get_node_path() const
Returns the NodePath held within this object.
static NodePath fail()
Creates a NodePath with the ET_fail error type set.
PandaNode * node() const
Returns the PandaNode held within this object.
This class is a wrapper around a NodePath that, unlike the actual NodePath class, doesn't hold a refe...
int compare_to(const NodePath &other) const
Returns a number less than zero if this NodePath sorts before the other one, greater than zero if it ...
bool operator<(const NodePath &other) const
Returns true if this NodePath sorts before the other one, false otherwise.
bool operator==(const NodePath &other) const
Returns true if the two paths are equivalent; that is, if they contain the same list of nodes in the ...
bool operator!=(const NodePath &other) const
Returns true if the two paths are not equivalent.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
bool was_deleted() const
Returns true if the NodePath we were referencing has been quietly deleted outside of the WeakNodePath...
This is one component of a NodePath.