00001 // Filename: eggTable.I 00002 // Created by: drose (19Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: EggTable::Constructor 00022 // Access: Public 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE EggTable:: 00026 EggTable(const string &name) : EggGroupNode(name) { 00027 _type = TT_table; 00028 } 00029 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: EggTable::Copy constructor 00033 // Access: Public 00034 // Description: 00035 //////////////////////////////////////////////////////////////////// 00036 INLINE EggTable:: 00037 EggTable(const EggTable ©) : EggGroupNode(copy), _type(copy._type) { 00038 } 00039 00040 00041 //////////////////////////////////////////////////////////////////// 00042 // Function: EggTable::Copy assignment operator 00043 // Access: Public 00044 // Description: 00045 //////////////////////////////////////////////////////////////////// 00046 INLINE EggTable &EggTable:: 00047 operator = (const EggTable ©) { 00048 EggGroupNode::operator = (copy); 00049 _type = copy._type; 00050 00051 return *this; 00052 } 00053 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: EggTable::set_table_type 00057 // Access: Public 00058 // Description: 00059 //////////////////////////////////////////////////////////////////// 00060 INLINE void EggTable:: 00061 set_table_type(TableType type) { 00062 _type = type; 00063 } 00064 00065 00066 //////////////////////////////////////////////////////////////////// 00067 // Function: EggTable::get_table_type 00068 // Access: Public 00069 // Description: 00070 //////////////////////////////////////////////////////////////////// 00071 INLINE EggTable::TableType EggTable:: 00072 get_table_type() const { 00073 return _type; 00074 }