Panda3D
internalNameCollection.I
1 // Filename: internalNameCollection.I
2 // Created by: drose (16Mar02)
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: InternalNameCollection::Destructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE InternalNameCollection::
22 ~InternalNameCollection() {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: InternalNameCollection::operator +=
27 // Access: Published
28 // Description: Appends the other list onto the end of this one.
29 ////////////////////////////////////////////////////////////////////
30 INLINE void InternalNameCollection::
32  add_names_from(other);
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: InternalNameCollection::operator +
37 // Access: Published
38 // Description: Returns a InternalNameCollection representing the
39 // concatenation of the two lists.
40 ////////////////////////////////////////////////////////////////////
42 operator + (const InternalNameCollection &other) const {
43  InternalNameCollection a(*this);
44  a += other;
45  return a;
46 }
void operator+=(const InternalNameCollection &other)
Appends the other list onto the end of this one.
void add_names_from(const InternalNameCollection &other)
Adds all the InternalNames indicated in the other collection to this name.
InternalNameCollection operator+(const InternalNameCollection &other) const
Returns a InternalNameCollection representing the concatenation of the two lists. ...