Panda3D
eggNamedObject.I
1 // Filename: eggNamedObject.I
2 // Created by: drose (10Feb99)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: EggNamedObject::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE EggNamedObject::
22 EggNamedObject(const string &name) : Namable(name) {
23 }
24 
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: EggNamedObject::Copy constructor
28 // Access: Public
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 INLINE EggNamedObject::
32 EggNamedObject(const EggNamedObject &copy) : EggObject(copy), Namable(copy) {
33 }
34 
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: EggNamedObject::Copy assignment operator
38 // Access: Public
39 // Description:
40 ////////////////////////////////////////////////////////////////////
41 INLINE EggNamedObject &EggNamedObject::
42 operator = (const EggNamedObject &copy) {
43  EggObject::operator = (copy);
44  Namable::operator = (copy);
45  return *this;
46 }
47 
48 INLINE ostream &operator << (ostream &out, const EggNamedObject &n) {
49  n.output(out);
50  return out;
51 }
A base class for all things which can have a name.
Definition: namable.h:29
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:31