Panda3D
 All Classes Functions Variables Enumerations
physicsObjectCollection.I
00001 // Filename: physicsObjectCollection.I
00002 // Created by:  joswilso (12Jul06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: PhysicsObjectCollection::Destructor
00018 //       Access: Published
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE PhysicsObjectCollection::
00022 ~PhysicsObjectCollection() {
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: PhysicsObjectCollection::operator +=
00027 //       Access: Published
00028 //  Description: Appends the other list onto the end of this one.
00029 ////////////////////////////////////////////////////////////////////
00030 INLINE void PhysicsObjectCollection::
00031 operator += (const PhysicsObjectCollection &other) {
00032   add_physics_objects_from(other);
00033 }
00034 
00035 ////////////////////////////////////////////////////////////////////
00036 //     Function: PhysicsObjectCollection::operator +
00037 //       Access: Published
00038 //  Description: Returns a PhysicsObjectCollection representing the
00039 //               concatenation of the two lists.
00040 ////////////////////////////////////////////////////////////////////
00041 INLINE PhysicsObjectCollection PhysicsObjectCollection::
00042 operator + (const PhysicsObjectCollection &other) const {
00043   PhysicsObjectCollection a(*this);
00044   a += other;
00045   return a;
00046 }
 All Classes Functions Variables Enumerations