2 * Copyright 2005-2008, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
16 NodeRef(dev_t device
= 0, ino_t node
= 0)
22 NodeRef(const struct stat
&st
)
28 NodeRef(const NodeRef
&other
)
30 device
= other
.device
;
34 NodeRef
&operator=(const NodeRef
&other
)
36 device
= other
.device
;
41 bool operator==(const NodeRef
&other
) const
43 return (device
== other
.device
&& node
== other
.node
);
46 bool operator!=(const NodeRef
&other
) const
48 return !(*this == other
);
51 bool operator<(const NodeRef
&other
) const
53 return (device
< other
.device
54 || (device
== other
.device
&& node
< other
.node
));
59 } // namespace BPrivate