Panda3D
|
00001 // Filename: eggTable.I 00002 // Created by: drose (19Feb99) 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: EggTable::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE EggTable:: 00022 EggTable(const string &name) : EggGroupNode(name) { 00023 _type = TT_table; 00024 } 00025 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: EggTable::Copy constructor 00029 // Access: Public 00030 // Description: 00031 //////////////////////////////////////////////////////////////////// 00032 INLINE EggTable:: 00033 EggTable(const EggTable ©) : EggGroupNode(copy), _type(copy._type) { 00034 } 00035 00036 00037 //////////////////////////////////////////////////////////////////// 00038 // Function: EggTable::Copy assignment operator 00039 // Access: Public 00040 // Description: 00041 //////////////////////////////////////////////////////////////////// 00042 INLINE EggTable &EggTable:: 00043 operator = (const EggTable ©) { 00044 EggGroupNode::operator = (copy); 00045 _type = copy._type; 00046 00047 return *this; 00048 } 00049 00050 00051 //////////////////////////////////////////////////////////////////// 00052 // Function: EggTable::set_table_type 00053 // Access: Public 00054 // Description: 00055 //////////////////////////////////////////////////////////////////// 00056 INLINE void EggTable:: 00057 set_table_type(TableType type) { 00058 _type = type; 00059 } 00060 00061 00062 //////////////////////////////////////////////////////////////////// 00063 // Function: EggTable::get_table_type 00064 // Access: Public 00065 // Description: 00066 //////////////////////////////////////////////////////////////////// 00067 INLINE EggTable::TableType EggTable:: 00068 get_table_type() const { 00069 return _type; 00070 }