Panda3D
eggNamedObject.I
Go to the documentation of this file.
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 eggNamedObject.I
10  * @author drose
11  * @date 1999-02-10
12  */
13 
14 /**
15  *
16  */
17 INLINE EggNamedObject::
18 EggNamedObject(const std::string &name) : Namable(name) {
19 }
20 
21 
22 /**
23  *
24  */
25 INLINE EggNamedObject::
26 EggNamedObject(const EggNamedObject &copy) : EggObject(copy), Namable(copy) {
27 }
28 
29 
30 /**
31  *
32  */
33 INLINE EggNamedObject &EggNamedObject::
34 operator = (const EggNamedObject &copy) {
35  EggObject::operator = (copy);
36  Namable::operator = (copy);
37  return *this;
38 }
39 
40 INLINE std::ostream &operator << (std::ostream &out, const EggNamedObject &n) {
41  n.output(out);
42  return out;
43 }
A base class for all things which can have a name.
Definition: namable.h:26
This is a fairly low-level base class–any egg object that has a name.
The highest-level base class in the egg directory.
Definition: eggObject.h:29